Hi everybody,
trying to fine-tune my Embperl performance, I wonder where I should
place site-wide Perl functions and Embperl subs [$ ... $] to get
best performance.
From the docs, I learned that *Embperl subs* are best placed in
their own file and included via the Embperl Execute command,
using import => 1.
For "ordinary" Perl subs, I tried the same thing, putting them
into an own file, surrounding them with [! !] to execute just once.
However, Embperl does not seem to import the sub definitions at all.
Should I put the subs into an ordinary .pm and use Exporter and
use '...' instead?
_____
Thomas Corte
<thomas@knipp.de>
trying to fine-tune my Embperl performance, I wonder where I should
place site-wide Perl functions and Embperl subs [$ ... $] to get
best performance.
From the docs, I learned that *Embperl subs* are best placed in
their own file and included via the Embperl Execute command,
using import => 1.
For "ordinary" Perl subs, I tried the same thing, putting them
into an own file, surrounding them with [! !] to execute just once.
However, Embperl does not seem to import the sub definitions at all.
Should I put the subs into an ordinary .pm and use Exporter and
use '...' instead?
_____
Thomas Corte
<thomas@knipp.de>