BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Is there any way to arrange for a callback to program level code as a running program crosses package boundaries?
I'd like to be able to have a subroutine in my module that gets called whenever the running program calls a function or method within the scope of that package, and perhaps another as it exits.
I can't even begin to see a way to do this, but then are are a lot of things in the Devel::* group of modules that do stuff with introspection that I wouldn't have thought possible had I not seen them in action.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Package level scope callbacks.
by Joost (Canon) on Jul 31, 2004 at 17:39 UTC | |
|
Re: Package level scope callbacks.
by fergal (Chaplain) on Jul 31, 2004 at 17:28 UTC | |
|
Re: Package level scope callbacks.
by theorbtwo (Prior) on Jul 31, 2004 at 17:38 UTC | |
|
Re: Package level scope callbacks.
by Limbic~Region (Chancellor) on Jul 31, 2004 at 17:12 UTC | |
|
Re: Package level scope callbacks.
by mvc (Scribe) on Aug 01, 2004 at 08:26 UTC | |
by gaal (Parson) on Aug 01, 2004 at 12:31 UTC | |
|
Re: Package level scope callbacks.
by ambrus (Abbot) on Aug 01, 2004 at 14:48 UTC | |
by BrowserUk (Patriarch) on Aug 01, 2004 at 14:52 UTC | |
by ambrus (Abbot) on Aug 01, 2004 at 15:07 UTC | |
by BrowserUk (Patriarch) on Aug 01, 2004 at 21:20 UTC | |
by Aristotle (Chancellor) on Aug 01, 2004 at 23:14 UTC | |
|
Re: Package level scope callbacks.
by gmpassos (Priest) on Aug 01, 2004 at 21:27 UTC | |
by tilly (Archbishop) on Aug 02, 2004 at 03:48 UTC |