On Wed, 29 Mar 2017 09:25:06 +0800
PYH <[email protected]> wrote:
> sub my_recursion {
> my $self = shift;
> ....
> if (...) {
> $self->my_recursion;
# you don't need $self. subroutine lookup starts
# in the same package. Just the sub by itself
# is good enough.
my_recursion();
> }
> }
More thoughts on recursion:
https://lookatperl.blogspot.ca/2012/11/a-look-at-recursion.html
--
Don't stop where the ink does.
Shawn H Corey
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/