From: Dave Mitchell Date: Thu, 20 Sep 2001 13:21:31 +0000 (+0100) Subject: Re: ARGV and read X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d84a16a79dbb993063e4052e2e5e7a2dca5effc;p=p5sagit%2Fp5-mst-13.2.git Re: ARGV and read Message-Id: <200109201221.NAA04258@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@12094 --- diff --git a/pod/perltodo.pod b/pod/perltodo.pod index b4d2a82..aa8545b 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -330,6 +330,8 @@ has changed. Detecting a change is perhaps the difficult bit. =head2 All ARGV input should act like EE +eg C doesn't currently read across multiple files. + =head2 Support for rerunning debugger There should be a way of restarting the debugger on demand. diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 524b91f..99d2960 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -1095,6 +1095,17 @@ lexical scope. See L. The name that the Perl binary itself was executed as, from C's C. This may not be a full pathname, nor even necessarily in your path. +=item ARGV + +The special filehandle that iterates over command-line filenames in +C<@ARGV>. Usually written as the null filehandle in the angle operator +C<< <> >>. Note that currently C only has its magical effect +within the C<< <> >> operator; elsewhere it is just a plain filehandle +corresponding to the last file opened by C<< <> >>. In particular, +passing C<\*ARGV> as a parameter to a function that expects a filehandle +may not cause your function to automatically read the contents of all the +files in C<@ARGV>. + =item $ARGV contains the name of the current file when reading from <>.