Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: how to store an array to a pseudohash?

by philipbailey (Chaplain)
on Jun 28, 2008 at 08:36 UTC ( #694497=note: print w/ replies, xml ) Need Help??


in reply to how to store an array to a pseudohash?

Others have explained how to store an array in a hash. It might also be worth mentioning that your code is equivalent to:

my $slice = { kind => $kind, prop => $prop, item => 5, 6, 7, 8, 9, 10, 11 };
Which is also equivalent to:
my $slice = { kind => $kind, prop => $prop, item => 5, 6 => 7, 8 => 9, 10 => 11 };


Comment on Re: how to store an array to a pseudohash?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-07-31 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls