Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: $_ and list flattening with map()

by blokhead (Monsignor)
on Dec 14, 2003 at 21:23 UTC ( #314685=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_++ for map @$_, @{$a};
    
  2. or download this
    map { map { $_++ } @$_ } @$a;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2016-06-30 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (388 votes). Check out past polls.