in reply to Monkey patching all subs with a basic 'starting subname' message
> Any other wisdom to be shared here (bar the obvious "don't" and "use a cpan module")?
Well even if you do it yourself, you are free to look into the code
concerning:
1. You can check the target prototype before patching with prototype
3. It's possible to inspect the originating "home" package of a sub, again try searching the archives here°
Nota bene: Perl has a trace option ( perlrun ) and the debugger has many means to "watch" subs ( perldebug )
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
°) See B::svref_2object($subref) in B
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Monkey patching all subs with a basic 'starting subname' message
by Anonymous Monk on Jul 14, 2017 at 19:53 UTC | |
by LanX (Saint) on Jul 14, 2017 at 20:00 UTC | |
by Anonymous Monk on Jul 17, 2017 at 20:11 UTC | |
by LanX (Saint) on Jul 17, 2017 at 20:18 UTC | |
by Anonymous Monk on Jul 18, 2017 at 12:04 UTC | |
|