note
ferreira
<p>
If you're having trouble getting the recursion right, you must peek inside the structures that control your recursion, like <c>%parent</c> in this case. You could use something like
<c>
use Data::Dumper;
...
print Dumper \%parent;
</c>
But I don't see any code that adds entries to this hash. How recursion is being controlled if every time a URL passes through the code, it meets (apparently) the same conditions again? I think that self-referencing pages should be quite common.
<p>As an aside note, most often you should not use subroutine calling like <c>&passing()</c>. Prefer plain <c>passing()</c>.
609089
609089