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.