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

i think
close ARGV if eof;
is more adequate, me too i've resetted $. but is deprecable imho.

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^3: Process multiple input files using a one-liner
by TJCooper (Beadle) on Jan 28, 2016 at 12:54 UTC
    Works perfectly now, thanks!