in reply to Re: How to identify the package of a subroutine given only a reference to it
in thread How to identify the package of a subroutine given only a reference to it
Hi,
Yes, it is a subroutine I generate through an eval, in a custom package
I was toying with the idea that I could track the package with only the ref to the generated subroutine. However, I need to do package housekeeping when the sub is no longer required.
So now have an object which contains the package name and the generated subroutine. The package name obtained using the __PACKAGE__ like you mentioned.
Thanks for the welcome!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to identify the package of a subroutine given only a reference to it
by choroba (Cardinal) on Feb 01, 2022 at 00:11 UTC | |
|
Re^3: How to identify the package of a subroutine given only a reference to it
by LanX (Saint) on Feb 01, 2022 at 02:32 UTC | |
by drclaw (Acolyte) on Feb 02, 2022 at 00:51 UTC | |
by LanX (Saint) on Feb 02, 2022 at 01:00 UTC | |
by drclaw (Acolyte) on Feb 02, 2022 at 22:56 UTC | |
by hv (Prior) on Feb 14, 2022 at 16:48 UTC | |
| |
by LanX (Saint) on Feb 02, 2022 at 23:04 UTC |