in reply to Creating Hash of Arrays

You are getting bit by context: $bin_file_data{$sampname} is a scalar, and an array in scalar context returns the length of the array. What you mean to do is store a reference to an array:
$bin_file_data{$sampname} = \@bindata;
See perlref, perlreftut and/or perllol for more guidance.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: Creating Hash of Arrays
by GeneGeek (Initiate) on Sep 09, 2015 at 22:44 UTC
    Thanks!
Re^2: Creating Hash of Arrays
by GotToBTru (Prior) on Sep 10, 2015 at 19:57 UTC

    Or

    $bin_file_data{$sampname} = [split '\t',$binnumbers];
    Dum Spiro Spero