I have piece of perl code. I want to pre compile it, and store it in some kind of permanent storage for subsequent fast execution. I can compile code to coderef simply by $code = eval "sub { $code }"; bu how I store and restore such a code?
Yes, yes, I know that Perl is portable only in string source form. I know that this may cause problems. But I need it for short-term optimazation only, in Web server. Just to avoid compiling pieces of ebmede Perl code again and again.
I think that there is some module that can store pre-compiled perl code to file. That should be sufficient, but I just can't find that module on CPAN anymore. Could anyone help me, please.
In reply to How to store CODE ref by gildir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |