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

Re: Hash of arrays generation

by VinsWorldcom (Priest)
on Sep 04, 2012 at 17:26 UTC ( #991663=note: print w/ replies, xml ) Need Help??


in reply to Hash of arrays generation

Maybe a more perl-guts competent poster can comment on the technical benefits of one versus the other, but I see this as the Perl motto: TIMTOWTDI.

Personally, I'd use them exactly as you describe. The first (to me) is more readable as to what I'm doing and I'd use it to assign a single value. I'd use the second form in the exact use case you point out - 'push' values to the existing structure.


Comment on Re: Hash of arrays generation

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-29 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls