Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Generating recursive hash

by bichonfrise74 (Vicar)
on Dec 12, 2009 at 07:15 UTC ( [id://812485]=note: print w/replies, xml ) Need Help??


in reply to Generating recursive hash

Perhaps something like this?
#!/usr/bin/perl use strict; my %record; while (<DATA>) { next if /^id/; my @a = split; $record{$a[2]}->{$a[0]} = $a[1]; } __DATA__ id name parent 1 data 0 2 data 1 3 data 1 4 data 3 5 data 4

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-29 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found