in reply to Re: sub and anonymous sub
in thread sub and anonymous sub
This is the same, right? Additionally, I would start with recurse(0);sub recurse { my ($depth) = @_; print +(" .") x $depth . "current depth:$depth\n" ; recurse($depth + 1) if $depth < 3; print +(" .") x $depth . "current depth:$depth\n" ; } recurse(-1);
|
|---|