Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Process multiple input files using a one-liner

by Discipulus (Canon)
on Jan 28, 2016 at 12:53 UTC ( [id://1153847]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1153847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-29 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found