Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Dereference anonymous AoA

by ikegami (Pope)
on Aug 08, 2014 at 21:28 UTC ( #1096811=note: print w/ replies, xml ) Need Help??


in reply to Dereference anonymous AoA

my $table = [ [ 'kept', 82 ], [ 'notkept', 1 ], [ 'repaired', 3 ] ]; for my $i ( 0 .. $#{ $table } ) # Iterates over the indexes. { say "label ". $table->[$i][0]; }
or
for my $row ( @{ $table } ) # Iterates over the values. { say "label ". $row->[0]; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2016-06-27 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (337 votes). Check out past polls.