From: Gisle Aas Date: Wed, 8 Feb 2006 17:52:16 +0000 (+0000) Subject: Bareword file handles not supported for chown/chmod/utime. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=345da37894bdc1d7c49da4f1b4efb7421506b4b3;p=p5sagit%2Fp5-mst-13.2.git Bareword file handles not supported for chown/chmod/utime. p4raw-id: //depot/perl@27132 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 6a9f5dc..47177a2 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -688,7 +688,9 @@ successfully changed. See also L, if all you have is a string. On systems that support fchmod, you might pass file handles among the files. On systems that don't support fchmod, passing file handles -produces a fatal error at run time. +produces a fatal error at run time. The file handles must be passed +as globs or references to be recognized. Barewords are considered +file names. open(my $fh, "<", "foo"); my $perm = (stat $fh)[2] & 07777; @@ -784,7 +786,9 @@ successfully changed. On systems that support fchown, you might pass file handles among the files. On systems that don't support fchown, passing file handles -produces a fatal error at run time. +produces a fatal error at run time. The file handles must be passed +as globs or references to be recognized. Barewords are considered +file names. Here's an example that looks up nonnumeric uids in the passwd file: @@ -6832,7 +6836,9 @@ uninitialized warning. On systems that support futimes, you might pass file handles among the files. On systems that don't support futimes, passing file handles -produces a fatal error at run time. +produces a fatal error at run time. The file handles must be passed +as globs or references to be recognized. Barewords are considered +file names. =item values HASH X