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