Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: syntax error with map in list context

by davidrw (Prior)
on Nov 20, 2005 at 12:48 UTC ( [id://510241]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %data=map {
        +"Player number $_", [ map { 1 + int rand(10) } 1 .. 5 ] 
    } 1 .. 10;
    
  2. or download this
    my %data=map {
      $_  => [ map { 1 + int rand(10) } 1 .. 5 ]
    } 1 .. 10;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found