in reply to Syntax for partly associative arrays
Anyway, if you had a list of words to use you would still use foreach like so:
my @words = qw( red blue peony ); for my $i ( 1.. $n ) { foreach my $w ( @words ) { print " I see '$a[$i]{$w}'\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Syntax for partly associative arrays
by Anonymous Monk on Sep 08, 2003 at 14:23 UTC | |
by Anonymous Monk on Sep 08, 2003 at 14:43 UTC |