Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Parsing Sequence Records

by MidLifeXis (Monsignor)
on May 07, 2014 at 19:53 UTC ( [id://1085373]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1085373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found