Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Dereference array of arrays

by kennethk (Abbot)
on Nov 12, 2013 at 15:20 UTC ( [id://1062215]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (@AoA) {
        my $var = shift @AoA;
        my $a = $var->[1];
        my $b = $var->[2];
    }
    
  2. or download this
    while (@AoA) {
        my $var = shift @AoA;
        my ($a, $b) = @{$var}[1,2];
    }
    
  3. or download this
    while (@AoA) {
        my @var = @{shift @AoA};
        my $a = $var[1];
        my $b = $var[2];
    }
    
  4. or download this
    for my $i (0 .. $#AoA) {
        my $a = $AoA[$i][1];
        my $b = $AoA[$i][2];
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found