in reply to Storing the bytecode compiled with eval()

You could define it as an anonymous subroutine and store it in a code ref:
$subref=eval 'sub { your code here }' die $@ if $@; ...
And then call it any time you want as:
$subref->();
or define it like a normal subroutine:
eval 'sub mysub { your code here }'; die $@ if $@;
And then call it with:
mysub();

--ZZamboni