Forwarding to the list. Begin forwarded message:
Date: Wed, 29 Mar 2017 11:32:08 -0400 From: Shawn H Corey <shawnhco...@gmail.com> To: Shlomi Fish <shlo...@shlomifish.org> Subject: Re: how to recursion On Wed, 29 Mar 2017 17:22:36 +0300 Shlomi Fish <shlo...@shlomifish.org> wrote: > my_recursion accepts $self as its first argument, so you should pass > it there. Doing «my_recursion($self);» is one option for doing that > but : 1. It looks ugly. 2. It's less future proof. 3. It's a bad > practice for OOP perl. > > The original code was fine. Oops, you're right. the OOLs I've been using lately take care self (or this) automatically. I had forgotten that Perl is an OO toolkit, not an OOL. ☺ -- 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/