A simple change should help you:
Change
sub { eval $$scrref };
into
eval "sub { $$scrref }";
That way, the eval only happens once.
In reply to Re: eval BLOCK with runtime-loaded code?
by Corion
in thread eval BLOCK with runtime-loaded code?
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |