Add *WriteToLog = \&MyWriteToLog; after the declaration of MyWriteToLog (and after the declaration of WriteToLog as well, of course). I believe perldoc perlsub should cover this.
In reply to Re: Intercept subroutine calls
by Fletch
in thread Intercept subroutine calls
by edwardt_tril
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |