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

Re: Parsing Sequence Records

by MidLifeXis (Monsignor)
on May 07, 2014 at 19:53 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2023-01-29 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?