This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document -l on symlinkless file systems
authorSmylers <Smylers@stripey.com>
Fri, 28 Mar 2014 16:33:05 +0000 (16:33 +0000)
committerTony Cook <tony@develop-help.com>
Wed, 28 May 2014 04:02:43 +0000 (14:02 +1000)
We can rely on -l always being false on platforms that don't support
symlinks:
http://www.nntp.perl.org/group/perl.perl5.porters/2014/03/msg214012.html

pod/perlfunc.pod

index d762600..aff2cd5 100644 (file)
@@ -378,7 +378,8 @@ other named unary operator.  The operator may be any of:
 
     -f  File is a plain file.
     -d  File is a directory.
-    -l  File is a symbolic link.
+    -l  File is a symbolic link (false if symlinks aren't
+        supported by the file system).
     -p  File is a named pipe (FIFO), or Filehandle is a pipe.
     -S  File is a socket.
     -b  File is a block special file.