sub set_param { $param = shift }
A generic solution for various vars could be done with PadWalker or evals.
But I'd rather not see that compiled into production code.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Parameter injection for testing
by LanX
in thread [Solved] Parameter injection for testing
by davies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |