![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re^4: How to read every 16 line of file ?by ikegami (Patriarch) |
on May 13, 2011 at 06:28 UTC ( #904592=note: print w/replies, xml ) | Need Help?? |
My code reads from ARGV, not STDIN, so his comment does apply. Mind you, the OP said "file" singular, so resetting shouldn't be necessary. See eof to reset the counter between files when using ARGV.
In Section
Seekers of Perl Wisdom
|
|