http://qs321.pair.com?node_id=1085373


in reply to Parsing Sequence Records

open(...) or die "Error: $!" is a good habit to get into. See also use autodie (autodie).

--MidLifeXis

Replies are listed 'Best First'.
Re^2: Parsing Sequence Records
by GrandFather (Saint) on May 08, 2014 at 12:33 UTC
    open my $fIn, '<', $filename or die "Can't open '$filename': $!";

    is an even better habit. The quoted file name in the error message lets you see what was actually being opened - unchomped input anyone?

    Perl is the programming world's equivalent of English