Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: How to identify the package of a subroutine given only a reference to itby LanX (Saint) |
on Feb 01, 2022 at 02:32 UTC ( [id://11141005]=note: print w/replies, xml ) | Need Help?? |
> So now have an object which contains the package name and the generated subroutine If you want to go that way you can also choose to bless the code ref directly. Objects don't need to be hashes in Perl.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|