in reply to Real private methods using lexical subs in Perl 5.18.
> my $private_method = sub { ...; }; $self->$private_method(@args);
still my preferred way to do it and I wonder why this approach is widely ignored.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Real private methods using lexical subs in Perl 5.18.
by Arunbear (Prior) on Jun 01, 2013 at 11:35 UTC | |
by choroba (Cardinal) on Jun 01, 2013 at 14:19 UTC | |
by Arunbear (Prior) on Jun 01, 2013 at 19:18 UTC | |
by LanX (Saint) on Jun 01, 2013 at 19:59 UTC | |
by Arunbear (Prior) on Jun 01, 2013 at 20:19 UTC | |
by LanX (Saint) on Jun 01, 2013 at 15:10 UTC |