Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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: (4)
As of 2020-05-25 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (145 votes). Check out past polls.

    Notices?