However, if you want to print what <> is currently consuming, you can:
use strict; use warnings; print $ARGV[0], "\n"; #printed while (<>) { print "$ARGV\n"; #can be printed }
In reply to Re: @ARGV in while loop
by Kenosis
in thread @ARGV in while loop
by lightoverhead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |