Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: PROTEIN FILE help me pleaseee

by choroba (Abbot)
on Jan 30, 2013 at 12:19 UTC ( #1016051=note: print w/ replies, xml ) Need Help??


in reply to PROTEIN FILE help me pleaseee

What do you mean by "doesn't work"? Is the number of F's too big? Does the program output any error messages?

When glaring at your script, I can see that

  • you do not chomp the $proteinfilename after reading it from STDIN. The real file name probably does not contain a newline at the end.
  • if the open is not successful, your program continues. Are you really interested in the results, if the file cannot be found? Use the idiom
    open my $FH, '<', $filename or die "Cannot open: $!";
  • next takes a label as a parameter. There are no labels in your code.
  • you do not indent the code. Once you are advanced enough to use loops, please also learn to indent the code. Without indentation, your code becomes write-only, unreadable mess for humans.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: PROTEIN FILE help me pleaseee
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-10-25 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (148 votes), past polls