Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How to add column into array from delimited tab file

by Kenosis (Priest)
on Feb 17, 2014 at 19:02 UTC ( #1075203=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
        undef %hash;
    }
    
  2. or download this
     push @{ $hash{ $header[$_] } }, $columns[$_] for 1 .. $#columns;
          ^            ^                 ^            ^    ^
    ...
          |            |                 + - Column value
          |            + - Column heading
          + - Generate a HoA, where: keys are column names; values are ref
    +erences to lists of column entries
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2021-10-25 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?