Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: help with hash or arrays or hash references

by Cristoforo (Deacon)
on May 08, 2012 at 18:12 UTC ( #969514=note: print w/ replies, xml ) Need Help??


in reply to Re^2: help with hash or arrays or hash references
in thread help with hash or arrays or hash references

The hashes, %proph_prots, %euk_prots, %vir_prots are not initialized with any values.

If the only parameters you are using from the file are:
$Query_id, $Subj_id, $bit_score,
you could make your initialization line as:
my ($Query_id, $Subj_id, $bit_score) = (split /\t/, $line)[0, 2, -1];

Update: Those are hash refs in the Flag() function but they are being used with regular hash notation/syntax. (You have not declared use strict; at the beginning of the script. Thats how I found the uninitialized hashes mentioned above.)


Comment on Re^3: help with hash or arrays or hash references
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-12-20 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls