Perl-Sensitive Sunglasses | |
PerlMonks |
Re: How to identify the package of a subroutine given only a reference to itby Discipulus (Canon) |
on Jan 31, 2022 at 08:16 UTC ( [id://11140985]=note: print w/replies, xml ) | Need Help?? |
Hello drclaw and welcome to the monastery and to the wonderful world of Perl! As side note to the main ansewer given by LanX++, and in the case you are the author of the subroutine, they obviously already know the package they belong to:
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|