$func= eval qq( sub {$newtext} );
Another possibility is to temporarily patch &run before executing $func.
local *Spin::Command::spin::run = sub { "new code" }
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^3: Possible to change package of code reference?
by LanX
in thread Possible to change package of code reference?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |