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

> It's definitely possible to tell in which package a sub was declared.

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

  • Comment on Re^3: Making it clearer to say that a sub is defined within current package
  • Download Code