in reply to (Guildenstern) RE: Array mysteriously disappears on loop exit...
in thread Array mysteriously disappears on loop exit...
sub add_containee(\%\%) { my ($container, $containee)=@_; #$container/containeeIndex are references to code providing this infor +mation #find the container my ($object, $i); my $found=0; for ($i=0; $i< @containerRefArray; $i++) { if ($containerRefArray[$i] eq $container) { $found=1; last; } } if (! $found) {push @containerRefArray, $container; push @containeeArray, []} if (defined $containee) { push @{$containeeArray[$i]}, $containee;} }
|
---|
Replies are listed 'Best First'. | |
---|---|
(Guildenstern) REx3: Array mysteriously disappears on loop exit...
by Guildenstern (Deacon) on Oct 09, 2000 at 19:51 UTC | |
by Anonymous Monk on Oct 09, 2000 at 20:14 UTC | |
by Guildenstern (Deacon) on Oct 09, 2000 at 22:25 UTC |