Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Process multiple input files using a one-linerby choroba (Cardinal) |
on Jan 28, 2016 at 12:35 UTC ( [id://1153845]=note: print w/replies, xml ) | Need Help?? |
The problem is that $. is not reset to 1 when the diamond operator opens a new file. See eof on how to detect each file's end.
In Section
Seekers of Perl Wisdom
|
|