in reply to Re: Recursion and Such
in thread Recursion and Such

That doesn't make sense since the line of code that is being affected is the following
sub recursion{ findDir($dir, $min, $max); } sub findDir{ my ($dir, $min_depth, $max_depth) = @_; }
granted that is a scaled down version, but for brevity's sake you get the idea. No matter what is being passed after $min and $max == 2 is not being updated in the findDir directory. It seems like the array @_ is holding on to old values, but even when I use
$dir = shift; $max = shift; $min = shift; etc ...
I still get the wrong data. This has to be some property of recursion that I am missing...