Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Extracting columns from a two dimensional array

by sasikumar (Monk)
on Dec 21, 2004 at 10:25 UTC ( [id://416424]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array=(    [0,1,2,3,4],
                [25,26,27,28,29],
                [10,11,12,13,14]
                );
    print @{@array[0]}[0..4];
    
  2. or download this
    my @array=(    [0,1,2,3,4],
                [25,26,27,28,29],
                [10,11,12,13,14]
                );
    print @{@array[0..2]}[3]
    

Log In?
Username:
Password:

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

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

    No recent polls found