in reply to Detecting an imported function
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 } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting an imported function
by Ovid (Cardinal) on Nov 18, 2005 at 03:19 UTC | |
by diotalevi (Canon) on Nov 18, 2005 at 05:20 UTC |