Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^14: how to read input from a file, one section at a time?

by davi54 (Sexton)
on Apr 02, 2019 at 16:38 UTC ( [id://1232030]=note: print w/replies, xml ) Need Help??


in reply to Re^13: how to read input from a file, one section at a time?
in thread how to read input from a file, one section at a time?

Hi Poj,
When I made the modifications that you suggested, for some reason, it mucked up the entire script. It started giving me errors like:
Use of uninitialized value $lowest in printf at poj_repeat.pl line 60, <$PROTFILE> chunk 2.
Use of uninitialized value $lowest in numeric eq (==) at poj_repeat.pl line 61, <$PROTFILE> chunk 2.
Use of uninitialized value in numeric eq (==) at poj_repeat.pl line 61, <$PROTFILE> chunk 2.
Can you help me with this? Use of uninitialized value in concatenation (.) or string at poj_repeat.pl line 62, <$PROTFILE> chunk 2.
Missing argument in printf at poj_repeat.pl line 67, <$PROTFILE> chunk 2.
Missing argument in printf at poj_repeat.pl line 67, <$PROTFILE> chunk 2
  • Comment on Re^14: how to read input from a file, one section at a time?

Replies are listed 'Best First'.
Re^15: how to read input from a file, one section at a time?
by poj (Abbot) on Apr 02, 2019 at 17:21 UTC

    Did you remove or comment out the original line ?

    #next FASTA_RECORD if $fasta_seen{ $para }++;
    poj
      However, now the script has stopped giving me the duplicate information. I have a test file where I have put the same sequence twice. It was giving me the duplicate print message earlier, but not anymore after fixing the semicolon issue.
Re^15: how to read input from a file, one section at a time?
by davi54 (Sexton) on Apr 02, 2019 at 17:30 UTC
    Hi,
    Yes, I did. I actually forgot to put a semicolon. Lol. Nevermind.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-20 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found