----- Original Message -----
From: "Sisyphus" <[EMAIL PROTECTED]>
>
> I can't think why it needs to be put in a BEGIN{} block - given that's not
> necessary with the Win32::API script.
I think I get it - the environment variable needs to be there when the
ghostscript dll is loaded - which happens at compile-time with the Inline::C
script (and would would be the same with an XS module).
But the Win32::API version does all it's stuff with the ghostscript dll at
run-time, so there's no need to set the environment variable at
compile-time. Run-time will suffice (provided it's done early enough).
Cheers,
Rob