Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Cleaner way of looping through a file and stripping only certain lines?

by duckyd (Hermit)
on Dec 08, 2006 at 20:01 UTC ( [id://588684] : note . print w/replies, xml ) Need Help??


in reply to Re: Cleaner way of looping through a file and stripping only certain lines?
in thread Cleaner way of looping through a file and stripping only certain lines?

I would add that you can avoid the use of a bareword filehandle by calling open with an undef scalar instead:
open my $input_fh, '<', "$ifile" or die "Couldn't open file: $!";
now use $input_fh just like you would have used IFILE