Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: remove entries with duplicate characters

by Laurent_R (Canon)
on Aug 01, 2019 at 20:46 UTC ( #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
Node Status?
node history
Node Type: note [id://11103736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2020-10-01 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (173 votes). Check out past polls.

    Notices?