Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: remove entries with duplicate characters

by Laurent_R (Canon)
on Aug 01, 2019 at 20:46 UTC ( [id://11103736]=note: print w/replies, xml ) Need Help??


in reply to Re^3: remove entries with duplicate characters
in thread remove entries with duplicate characters

Use of uninitialized value $count_in in printf at ../remove_duplicate +_genes.pl line 34. 0 total records read from 'enzymes.fasta' Use of uninitialized value $count_out in printf at ../remove_duplicate +_genes.pl line 35. 0 records written to 'duplicate_gene_entries_in_enzymes.fasta' after r +emoving duplicate entries
This is because you never increment the $count_in and $count_out variables in your code (and also did not provide a start value when you declared them).

BTW, there is a built-in variable, $., which keeps track of the number of lines read from a file. You can just print its value after you've finished reading your file (instead of $count_in).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found