perlfunc.pod: clarify return value of -X [perl #120077]
authorDavid Golden <dagolden@cpan.org>
Wed, 2 Oct 2013 18:03:29 +0000 (14:03 -0400)
committerDavid Golden <dagolden@cpan.org>
Wed, 2 Oct 2013 18:03:29 +0000 (14:03 -0400)
pod/perlfunc.pod

index 4de31ac..80dc367 100644 (file)
@@ -357,10 +357,10 @@ A file test, where X is one of the letters listed below.  This unary
 operator takes one argument, either a filename, a filehandle, or a dirhandle, 
 and tests the associated file to see if something is true about it.  If the
 argument is omitted, tests C<$_>, except for C<-t>, which tests STDIN.
-Unless otherwise documented, it returns C<1> for true and C<''> for false, or
-the undefined value if the file doesn't exist.  Despite the funny
-names, precedence is the same as any other named unary operator.  The
-operator may be any of:
+Unless otherwise documented, it returns C<1> for true and C<''> for false.
+If the file doesn't exist or can't be examined, it returns C<undef> and
+sets C<$!> (errno).  Despite the funny names, precedence is the same as any
+other named unary operator.  The operator may be any of:
 
     -r  File is readable by effective uid/gid.
     -w  File is writable by effective uid/gid.