Dear Ladies and Gentlemen,

This may well be stupid and or an FAQ, but how does one write an
application that embeds the Perl intrepreter that will have the correct
initialisation preamble (that given by perl -MExtUtils::Embed -e xsinit
-- -o -) for Perls other than the current one ?

The Nagios project (http://www.Nagios.ORG) embeds the Perl interpreter
to increase the performance of Perl plugins (service checks) and thereby
saves the cost of an interpreter load, a fork and the compile/parse
phase each time the plugin is run.

However, Perl 5.8.0 requires a notably different preamble than 5.6.x and
5..05_03 and also requies that some of the renetrant (apparently) Perl
functions) are undefined if the Perl is built with threading.

Ideally this would be visible to an #ifdef.

Thank you,

Yours sincerely.

 -- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.

Reply via email to