Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Parsing Sequence Records

by Laurent_R (Canon)
on May 07, 2014 at 21:56 UTC ( #1085383=note: print w/replies, xml ) Need Help??

in reply to Re: Parsing Sequence Records
in thread Parsing Sequence Records

I definitely agree with the three-argument syntax you are suggesting, but I think that MidLifeXis's comment was even more important: checking whether the file could be open. I would therefore suggest this possible syntax:
my $input_file = "/Users/Desktop/Pipelines/fungi.1.aa.hypothetical.faa +"); my $output_file = "Users/Desktop/Pipelines/fungi.1.aa.hypothetical50.f +aa"); open my $in, '<', $input_file or die "could not open $input_file $!"; open my $out, '>', $output_file or die "could not open $output_file $! +";

Replies are listed 'Best First'.
Re^3: Parsing Sequence Records
by thezip (Vicar) on May 07, 2014 at 22:29 UTC

    I always use autodie, so its a moot point for me... :-)

    *My* tenacity goes to eleven...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-12-06 11:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found