Not sure of understanding your question, but..
If you want to collect info for debugging purpose you can use
Carp or
caller directly and something like
Hook::LexWrap or
Sub::WrapPackages to wrap all subs with caller informations, or something like a
Fudge error reporting.
HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.