Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Sorry I ask the same question again. But I am still facing this problem. I can compile 1 file using pp -o out.exe src.pl But how to combine two file, and how to embedded sqlite and web server(perl) into that .exe I have read PAR ducument but I could not uderstand it. I am still new to PERL Thank you

Replies are listed 'Best First'.
Re: PAR combining more than 1 file
by gellyfish (Monsignor) on Jul 09, 2004 at 13:08 UTC

    Please read carefully the pp manpage it explains all this quite clearly.

    /J\

Re: PAR combining more than 1 file
by xorl (Deacon) on Jul 09, 2004 at 14:03 UTC
    Try:
    pp -o foo foo.pl bar.pl
    According to the documentation this Packs 'foo.pl' and 'bar.pl' into 'foo'

    I don't know anything about SQLite. Try the lists at http://www.sqlite.org/support.html They might be able to help you embed it.

    I don't know anything about embeding a webserver either. A google search finds http://www.mbedthis.com/ I'm sure there are other products out there.

Re: PAR combining more than 1 file
by xorl (Deacon) on Jul 09, 2004 at 14:10 UTC
    Oh I found the first thread... The tutorial listed here (373091) looks very good. The tutorial also mentions Apache::PAR which "is a framework for including Perl Archive files in a mod_perl (1.x or 2.x) environment. It allows an author to package up a web application, including configuration, static files, Perl modules, and Registry and Perl Run scripts to include in a single file."