Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 musing on the Monastery: (7)
As of 2014-12-29 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (186 votes), past polls