Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by 1nickt (Abbot)
on Apr 05, 2017 at 15:32 UTC ( #1187141=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $VAR1 = [
              'one',
    ...
              'blue',
              'fish'
            ];
    
  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://1187141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2020-11-27 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?