diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2001-09-20 14:21:31 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-20 12:49:17 +0000 |
commit | 2d84a16a79dbb993063e4052e2e5e7a2dca5effc (patch) | |
tree | 7e06fd474f9d540464b37aca33d1c0a3e6a47e66 | |
parent | e337fe5d35fe209b9b7282bd06a3e200f19d1403 (diff) | |
download | perl-2d84a16a79dbb993063e4052e2e5e7a2dca5effc.tar.gz |
Re: ARGV and read
Message-Id: <200109201221.NAA04258@gizmo.fdgroup.co.uk>
p4raw-id: //depot/perl@12094
-rw-r--r-- | pod/perltodo.pod | 2 | ||||
-rw-r--r-- | pod/perlvar.pod | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod index b4d2a82b89..aa8545b089 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 E<lt>E<gt> +eg C<read(ARGV, ...)> 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 524b91f204..99d29603dd 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -1095,6 +1095,17 @@ lexical scope. See L<bytes>. The name that the Perl binary itself was executed as, from C's C<argv[0]>. 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<ARGV> 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 <>. |