Try checking the sub's compilation package. I'm using eval to cover just in case the value that was given to sub_package() isn't a code reference or whatever.
use B 'svref_2object'; sub sub_package { eval { svref_2object( shift )->STASH->NAME } }
In reply to Re: Detecting an imported function
by diotalevi
in thread Detecting an imported function
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |