Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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.)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969514]
and a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-03-27 09:52 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (319 votes). Check out past polls.