Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: $_ and list flattening with map()

by !1 (Hermit)
on Dec 14, 2003 at 21:18 UTC ( #314683=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @a = qw(1 2);
    my @b = \(@a);
    ...
    print "Addresses do not match$/" unless "@b" eq "@c";
    __END__
    Addresses do not match
    
  2. or download this
    ${$_}++ for map \(@$_),@{$a};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://314683]
help
Chatterbox?
[perldigious]: jedikaiti: Breakout your Gustav Holst Recordings.
[jedikaiti]: :-)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2017-07-24 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (355 votes). Check out past polls.