in reply to Re^2: how to prevent open from dying
in thread how to prevent open from dying

I hate testing for the same condition twice in a row, as you did.
while ( ... ) { my $fh; if (!open($fh, '<', $inputFile)) { warn( "Unable to open analysis file $inputFile: $!\n" ); next; } ... }