Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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.


Comment on Re: Elegance, dammit!
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2015-01-31 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (258 votes), past polls