in reply to Re^3: Real private methods using lexical subs in Perl 5.18.
in thread Real private methods using lexical subs in Perl 5.18.

I'd rather inspect the caller for file and line to put it in the log.

edit

or using PadWalker to find the variable-name 2 levels up holding the coderef 1 level up.

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^4: Real private methods using lexical subs in Perl 5.18.