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

Re: Shared hash of anonymous arrays?

by GrandFather (Sage)
on Aug 29, 2006 at 22:04 UTC ( #570266=note: print w/replies, xml ) Need Help??


in reply to Shared hash of anonymous arrays?

$foo{'bar'} is an array reference so the assignment to the array is:

@{$foo{'bar'}} = ($i, $j, $k);

The code then prints:

$foo = { 'bar' => [ #0 '1', #1 '2', #2 '3' ] };

DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570266]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-11-19 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?