Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: perlkhan 77

by dHarry (Abbot)
on Apr 22, 2009 at 11:45 UTC ( #759250=note: print w/ replies, xml ) Need Help??


in reply to perlkhan 77

Your code is full of mistakes/"sins". If you want to work with fasta files please take a look at fasta on CPAN. It might be a better idea to use an existing module to work with fasta files than to roll your own.

Some general comments:

  • check for the success of open, don't assume everything is fine.
  • use the the 3-arg form of open, see open.
  • put use strict; and use warnings; in your code. It would catch most of the errors in your script.


Comment on Re: perlkhan 77
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-07-04 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls