Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: HoA create from array using map, more efficient?

by hsinclai (Deacon)
on Jun 18, 2011 at 20:22 UTC ( [id://910357]=note: print w/replies, xml ) Need Help??


in reply to Re: HoA create from array using map, more efficient?
in thread HoA create from array using map, more efficient?

Thanks, the implicit split is better... also, yes that script runs under strictures (I didn't show the whole script obviously) -- I just declared ($k,$v) globally because I use them in a bunch of other places - maybe that's a bad idea but they get overwritten each time, and values are coming back correctly.
Maybe that's a bad idea no matter how short the script?

  • Comment on Re^2: HoA create from array using map, more efficient?

Replies are listed 'Best First'.
Re^3: HoA create from array using map, more efficient?
by ikegami (Patriarch) on Jun 18, 2011 at 20:26 UTC
    Avoid the my is surely a premature optimisation that can only hurt you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-20 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found