in reply to Storing the bytecode compiled with eval()
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
|
|---|