If you are looking for a free soltuion you can try the 'O' module

perldoc O

assume hello.pl is a perl file
do the following

perl -MO=C hello.pl > hello.c

Now hello.c is a c version of your file
Compile it using your favourite C compiler ( you will have to include all perl libraries anyway )

On Linux I do this

gcc -D_REENTRANT -fno-strict-aliasing -I/usr/local/include -I/usr/lib/perl5/5.6.1/i386-linux-thread-multi/CORE *hello.c* -o *hello* -rdynamic -L/usr/local/lib /usr/lib/perl5/5.6.1/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.6.1/i386-linux-thread-multi/CORE -lperl -lnsl -ldl -lm -lpthread -lc -lcrypt -lutil

(gasp !)

and now the output file hello runs without perl

Just be warned that this may not be the most efficient c program for hello

Craig Williams wrote:
Sounds crazy I know but if I'm on a customers side with my CD of pl scripts
I don't want to have to install Perl on their
servers just to run my code. Can I just put the binary files on the CD and
run them ?

thanks

Craig



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to