Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: PROTEIN FILE help me pleaseee

by choroba (Bishop)
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.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016051]
[LanX]: ... understood everything after mentally write down what he said.
[choroba]: Trainspotting?
[choroba]: Ouch, trailing commas in JSON :-(
[LanX]: ... though there seems to exist a taxation for the letter 't' in Northern Bri''ain ;-)
[LanX]: never seen trainspotting in OV ... :(
[karlgoethebier]: LanX
[LanX]: They should teach Scottish in continental schools after Brexit !!!

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2018-02-19 10:44 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (261 votes). Check out past polls.