in reply to What package is the method in?
With UNIVERSAL::can you can obtain a code ref to the module, and Sub::Identify tells you where it's from:
use Sub::Identify qw(stash_name); print stash_name($obj->can('method_name'));
Note that this might not be reliable, because sub names can be changed with Sub::Name.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What package is the method in?
by ikegami (Patriarch) on May 14, 2010 at 16:34 UTC |