in reply to Re: @ARGV in while loop
in thread @ARGV in while loop

Thank you BrowserUK. You are right. It's good to learn.

what about this:

for(;;){ print "3:\t$ARGV[0]\n"; #cannot print either last; }
Is $ARGV[0] consumed too?

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

    my fault

    I put for(;;;) after while().

    if run for(;;) first, it will print $ARGV[0]