Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: reading file in Hash

by codeacrobat (Chaplain)
on May 07, 2009 at 21:25 UTC ( #762704=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e 'print<<EOF
    1 2 3
    ...
    g h i
    EOF
    '  | perl -MData::Dumper -lane '1==$. and @h=@F and next;my $i; push @
    +{$v{$h[$i++]}},$_ for @F}{print Dumper(\%v)'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2021-10-28 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (95 votes). Check out past polls.

    Notices?