Note that I did not include the name in the array; it is redundant with the key. To access the boolean flags associated with name 'fo', usemy %zone; foreach my $name (AA..ZZ) { $zone{$name} = [ qw|FALSE FALSE| ]; }
my ($flag0, $flag1) = @{ $zone{fo} }; # or my $flag0 = $zone{fo}[0]; my $flag1 = $zone{fo}[1];
-Mark
In reply to Re: Novice flails arrays
by kvale
in thread Novice flails arrays
by wa4otj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |