----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>; <[EMAIL PROTECTED]>
Sent: Friday, November 11, 2005 5:31 AM
Subject: Re: Is Par dead? Where to download?


> Since PAR is alive (phew!), is there a trick to get Inline::C modules
> to be swallowed into the compiled unit? I sure could use that feature.
>

The following seems to work for me with a simple Inline::C script:

1) Compile the Inline::C script:
perl test.pl

2) Build the executable:
pp -M FindBin -M Inline -o test.exe test.pl

3) Ship the executable with the entire sub-directory that houses the dll
that Inline::C created when 'perl test.pl' was run. That sub-directory will
be called something like _Inline/lib/auto/nnnn_xx_dddd - where 'nnnn' is the
name of the script ('test' in this example), 'xx' is the extension you gave
to the script ('pl' in this example), and 'dddd' is the first four hex
digits of the MD5 digest that Inline calculated for the script.

Afaict, if that entire directory structure sits alongside test.exe, then it
will work fine.

Now .... perhaps that "directory structure" (and the files contained
therein) can be built into the executable - thus rendering it unnecessary to
distribute that "directory structure" separately with the executable. Can
that be done ? (My understanding of PAR is not all that flash :-)

Cheers,
Rob

Reply via email to