Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: key and values help

by murugu (Curate)
on Aug 07, 2004 at 04:48 UTC ( [id://380851]=note: print w/replies, xml ) Need Help??


in reply to key and values help

Hi,

The code is,

while (<DATA>) { chomp; my @a=split/\s+/; push @{$h{$a[0]}},$a[1]; } $"="\t"; print "$_\n@{$h{$_}}\n\n" for sort keys %h; __DATA__ log1 123 log1 233 log1 223 log2 465 log2 231 log2 456

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found