Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Elegance, dammit!

by Errto (Vicar)
on Jun 15, 2007 at 23:54 UTC ( [id://621539]=note: print w/replies, xml ) Need Help??


in reply to Elegance, dammit!

first pass
while (@array) { my ($key, @vals) = splice @array, 0, 3; $hash{$key} = [ @vals ]; }
assuming you no longer need the original array once you're done.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found