in reply to Iterator Problem with recursion
I cannot say definitively what's going on, however two conceivably possible explanations could be:
Possible alternatives include reducing the latter for loop:
for my $h (@out) { &analyze($htree->append("$h$hist\n$k"),$rul) unless ($hist =~ /\|$ +h\|/); }
If that works, it would seem to confirm that it is a bug.
UPDATE: Looking at the provided code again, it would appear that it was provided in its entirety and that the comments were merely comments. However your reference to next as opposed to last still applies.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Iterator Problem with recursion
by PetaMem (Priest) on Apr 26, 2005 at 17:49 UTC |