in reply to Re^2: Making it clearer to say that a sub is defined within current package
in thread Making it clearer to say that a sub is defined within current package
From Sub::Info
my $cobj = B::svref_2object($sub); my $name = $cobj->GV->NAME; my $file = $cobj->FILE; my $package = $cobj->GV->STASH->NAME;
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|