Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: count total number of occurrence in all filesby Eily (Monsignor) |
on May 09, 2016 at 09:35 UTC ( [id://1162530]=note: print w/replies, xml ) | Need Help?? |
Hello Discipulus :). Actually there is no need for -n, because that's what while (<>) { } does (and -n just adds that loops around your code, as can be seen with -MO=Deparse). It opens each file passed as an argument in the filehandle ARGV, or reads from STDIN is @ARGV == 0.
In Section
Seekers of Perl Wisdom
|
|