in reply to [Solved] Parameter injection for testing
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parameter injection for testing
by LanX (Saint) on Aug 24, 2022 at 20:18 UTC |