Use of uninitialized value $i in array element at /home/neil/src/perltest/foo.pl line 25. label kept #### #!/usr/bin/perl use strict; use warnings; use feature 'say'; my $aref = [ [ 'kept', 82 ], [ 'notkept', 1 ], [ 'repaired', 3 ] ]; say Dumper $aref; foreach my $i ( @{ $aref } ) { say "label ". $aref->[$i][0]; }