Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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

by Cristoforo (Curate)
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.)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969514]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-01-22 16:27 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (235 votes). Check out past polls.