Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
package myPackage; my @containerRefArray=(); my @containeeArray=(); ... sub get_parentRelPos (\%$) { my ($object, $name)=@_; my ($i, $j, $found); my @tmp; my $parentObject=$object->{'~PARENT'}; my $objectIndex=$object->{'~entPhysicalIndex'}; for ($i=0; $i < @containerRefArray; $i++) { if ($containerRefArray[$i] eq $parentObject) { $found=1; last; } } ...
DB<16> x @containeeArray 0 ARRAY(0xf132c0) 0 HASH(0xf11260) 'entPhysicalAlias' => undef ... DB<17> n NIM_Contains::get_parentRelPos(/home/rt106745/dev-edit/modules/NIM_Con +tains.pm:48): 48: if ($found) { DB<17> x @containeeArray empty array
|
---|
Replies are listed 'Best First'. | |
---|---|
(Guildenstern) RE: Array mysteriously disappears on loop exit...
by Guildenstern (Deacon) on Oct 09, 2000 at 19:10 UTC | |
by Anonymous Monk on Oct 09, 2000 at 19:31 UTC | |
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 | |
by Anonymous Monk on Oct 09, 2000 at 19:33 UTC | |
RE (tilly) 1: Array mysteriously disappears on loop exit...
by tilly (Archbishop) on Oct 09, 2000 at 22:49 UTC |