http://www.perlmonks.org?node_id=812783


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;