No such thing as a small change | |
PerlMonks |
Re: Rewriting sub code on import to add loggingby citromatik (Curate) |
on May 14, 2008 at 10:51 UTC ( [id://686492]=note: print w/replies, xml ) | Need Help?? |
So part of the problem (apart from my inability to get this to work at all) is that the warn statements are outside the $code->() call. Is there a way I can append them inside the subroutine itself? You may find interesting this post. You can edit the source of the subroutines and evaluate it into code again:
Outputs:
Hope this helps citromatik
In Section
Seekers of Perl Wisdom
|
|