in reply to Process multiple input files using a one-liner

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.

Replies are listed 'Best First'.
Re^2: Process multiple input files using a one-liner
by TJCooper (Beadle) on Jan 28, 2016 at 13:21 UTC
    Lines 1-45 are header lines which do not contain the columnar data.