You can use local instead. See Micro Mocking: using local to help test subs for some examples.
In reply to Re: locally redefining subroutine in module
by adrianh
in thread locally redefining subroutine in module
by Jasper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |