Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Converting array reference to list context

by ikegami (Patriarch)
on Dec 31, 2010 at 06:10 UTC ( [id://879908]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $aoa = [ [1],[2],[3,4] ];
    my @flat = map { @$_ } @$aoa;  # @flat = (1,2,3,4)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-19 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found