Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: converting rows into column

by suhailck (Friar)
on Jul 18, 2010 at 16:21 UTC ( #850163=note: print w/replies, xml ) Need Help??


in reply to converting rows into column

perl -MData::Dumper -e '%hash;while(<>) { ($hkey,$hval)=split /\s*:\s+ +/; push @{$hash{$hkey}}, $hval; };print Dumper(\%hash)' fileName


~suhail

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-12-04 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?