for my $deref (@$aref){ for my $element (@$deref){ print "$element\n"; } }