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"; } }
In reply to Re: Syntax for partly associative arrays
by shenme
in thread Syntax for partly associative arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |