We don't bite newbies here... much | |
PerlMonks |
Re: Process multiple input files using a one-linerby Discipulus (Canon) |
on Jan 28, 2016 at 12:53 UTC ( [id://1153847]=note: print w/replies, xml ) | Need Help?? |
Beside the fact of $. not resetting explained by choroba you can try wrapping the division into an eval {} block and if $@ is set print the line number and the value. i dunno how to print the current filename relative to the current value of the handle ARGV L* update i dunno why now runs with the proper close of ARGV : you have bad data before line 45? is the only reasonable possibility L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|