Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    say Dumper(\@{ [map { $_ => 'fish' } qw(one two red blue)] } );
    
  2. or download this
    say Dumper(\@[ {map { $_ => 'fish' } qw(one two red blue)} ] );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-11-25 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?