There's more than one way to do things | |
PerlMonks |
Re: while(<>) in perl 5.22by toolic (Bishop) |
on Nov 14, 2016 at 19:54 UTC ( [id://1175907]=note: print w/replies, xml ) | Need Help?? |
I reproduce your undesired behavior on 5.16. To get your desired output in this instance, replace while (<>) with for (@ARGV)
See also perlop
In Section
Seekers of Perl Wisdom
|
|