Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Syntax for casting map to a hash or an array

by cbeckley (Curate)
on Apr 05, 2017 at 16:37 UTC ( #1187159=note: print w/replies, xml ) Need Help??


in reply to Re^3: Syntax for casting map to a hash or an array
in thread Syntax for casting map to a hash or an array

I got there! In the end. Somewhat circuitously ...

I knew this

%{ {map { $_ => 'fish' } qw(one two red blue)} }
returned a hash ...

And I knew Dumper needed a reference ...

And I suspected that if I could successfully pass Dumper a reference to an array I might finally understand what was going on with

%{ { ... } }
that bit.

Thank you very much.

Thanks,
cbeckley

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2020-10-29 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (271 votes). Check out past polls.

    Notices?