And then call it any time you want as:$subref=eval 'sub { your code here }' die $@ if $@; ...
or define it like a normal subroutine:$subref->();
And then call it with:eval 'sub mysub { your code here }'; die $@ if $@;
mysub();
--ZZamboni
In reply to Re: Storing the bytecode compiled with eval()
by ZZamboni
in thread Storing the bytecode compiled with eval()
by ctl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |