in reply to Novice flails arrays
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Novice flails arrays
by wa4otj (Beadle) on Mar 26, 2004 at 22:04 UTC |