
KevinR
Veteran

Apr 11, 2009, 4:18 PM
Post #2 of 2
(230 views)
|
|
Re: [kevindai] about arrays of arrays
[In reply to]
|
Can't Post
|
|
It depends a bit on how you initially create the array of arrays, but assuming you are not using a reference to an array of arrays you could do it like this:
use strict; use warnings; my @array = ([1 .. 4],[5 .. 8],[6 .. 9]); foreach my $t (@{$array[2]}){ print "$t\n"; } Reading material: http://perldoc.perl.org/perllol.html -------------------------------------------------
|