Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Elegance, dammit!

by Errto (Vicar)
on Jun 15, 2007 at 23:54 UTC ( #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
Node Status?
node history
Node Type: note [id://621539]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2017-05-28 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?