Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: $_ and list flattening with map()

by pg (Canon)
on Dec 14, 2003 at 22:05 UTC ( #314690=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print \$_, "\n" for map @$_, @{$a};#one of your way
    print "=======\n";
    foreach (@$a) { print \$_, "\n" foreach @$_ }#your other way
    
  2. or download this
    SCALAR(0x15551a4)
    SCALAR(0x15551b0)
    ...
    SCALAR(0x155abd4)
    SCALAR(0x155500c)
    SCALAR(0x1571284)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-07-30 11:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls