If efficiency is the aim surely modperl and putting the code in a module would be a good choice. Once the module is loaded and the code compiled it is ready, willing and able for the duration. Often the major bottleneck is in the overhead of starting the new process for each request, not compiling the actual Perl code itself. Under modperl you start one process, compile once and then use this process to deal with all subsequent requests. The first one is slow then it is Win Win Win.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: How to store CODE ref
by tachyon
in thread How to store CODE ref
by gildir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |