Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Best way to read in an XbyX table into a Hash{Key}{Key2}[value] structure

by rjt (Curate)
on Aug 07, 2013 at 19:01 UTC ( [id://1048414]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my (undef, @col) = split /\t/, <>; # Column names
        my %prob_map;
    ...
    __END__
    AAC to AAA = 0.011
    AAA to AAC = 0.01506
    
  2. or download this
        my @col   = split /\t/, <>; # Column headings
        my @lines = map { my %l; @l{@col} = split /\t/; \%l } <>;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found