Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Statistics via hash- NCBI BLAST Tab Delimited file

by bv (Friar)
on Dec 14, 2009 at 23:20 UTC ( #812783=note: print w/replies, xml ) Need Help??

in reply to Statistics via hash- NCBI BLAST Tab Delimited file

Your code prints out <c>$organisms{$organism}

- Where does that get set? The only other reference is on line 19, where you autovivify it as an array ref, which is why it gets stringified like that. You probably meant to push some value onto an array within your loop, and then do the median on the array outside the loop. Try to clean up your code so that the headings make sense for the data you are printing. Your headings are for an organism, a frequency, and 3 medians, but you output the organism, frequency, and two unclear fields. What is %organisms supposed to contain, anyway?

@_=qw; Just another Perl hacker,; ;$_=q=print "@_"= and eval;

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2020-02-18 16:55 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (76 votes). Check out past polls.