Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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]; }


Comment on Re: Dereference anonymous AoA
Select or Download Code

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 musing on the Monastery: (7)
As of 2014-09-22 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (184 votes), past polls