in reply to Array of array
use strict; use warnings; use Data::Dumper; my @kk = (["Hello","Perl"], ["Monks"]); foreach my $i(0..$#kk){ my @test = @{$kk[$i]}; print Dumper(\@test); }
Updated: Don't confuse with Data::Dumper, Do it like,
use strict; use warnings; my @kk = (["Hello","Perl"], ["Monks"]); foreach my $i(0..$#kk){ my @test = @{$kk[$i]}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array of array
by Kandankarunai (Novice) on May 05, 2011 at 06:34 UTC | |
by AnomalousMonk (Archbishop) on May 05, 2011 at 17:41 UTC |