http://qs1969.pair.com?node_id=1074985


in reply to @ARGV in while loop

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 }

Replies are listed 'Best First'.
Re^2: @ARGV in while loop
by lightoverhead (Pilgrim) on Feb 14, 2014 at 18:02 UTC

    Thank you. You are right.