more useful options | |
PerlMonks |
Re^2: Question on Reading a file inside while and counting no.of linesby Jim (Curate) |
on Jun 16, 2013 at 02:06 UTC ( [id://1039171]=note: print w/replies, xml ) | Need Help?? |
It starts at zero… Actually, it starts at 1, not 0.
It's probably also worth demonstrating here the usual idiom for resetting the line number to 1 for each file in @ARGV when using <>.
In Section
Seekers of Perl Wisdom
|
|