Yep, it seems to do (though it's not built-in OR standard). Untested:
use Devel::Caller 'caller_cv'; sub foo { my $selfref = caller_cv(0); # ... }
In reply to Re^2: sub getting reference to itself : generic way
by calin
in thread sub getting reference to itself : generic way
by calin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |