in reply to @ARGV in while loop
why the $ARGV[0] in while loop cannot be accessed?
Because the diamond operator (when used with the null filehandle <>) consumes the contents of @ARGV.
See the section of perlop I/O-Operators that starts with the sentence:
The null filehandle <> is special:for the details.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: @ARGV in while loop
by lightoverhead (Pilgrim) on Feb 14, 2014 at 17:59 UTC | |
by lightoverhead (Pilgrim) on Feb 14, 2014 at 18:39 UTC |