Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Creating a Slice through a 2 dimensional array

by xdg (Monsignor)
on Sep 29, 2005 at 09:57 UTC ( [id://496029]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found