Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Hash of arrays generation

by VinsWorldcom (Parson)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991663]
help
Chatterbox?
[ambrus]: Or unless you left the title field empty or entered a very short title for the node, but then you'd get a message saying that.
[ambrus]: I hope Corion or some other admin is here and can check the logs to see what the problem is.
[mz2255]: I wish I had an online shop but sadly no. The title field definitly wasn't short, had a perl module in the title with 5-6 additional words.
[ambrus]: you can also try to just post again in case it was some intermittent error
[mz2255]: Tried again, denied. Maybe my code is just so bad the site refuses to post it.
[marto]: no, there's a bug, sometimes...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2017-10-19 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (255 votes). Check out past polls.

    Notices?