On Wed, 29 Mar 2017 09:25:06 +0800
PYH <p...@vodafonemail.de> 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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to