> 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)
In reply to Re: Real private methods using lexical subs in Perl 5.18.
by LanX
in thread Real private methods using lexical subs in Perl 5.18.
by tobyink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |