in reply to Problems with PP and Posix

Can I ask what command line arguments you are sending to pp? Usually you have to tell it which modules you are using so that they can be included in the exe, and that error seems to indicate it can't find a module.

Replies are listed 'Best First'.
Re: Re: Problems with PP and Posix
by monger (Friar) on Dec 19, 2003 at 18:18 UTC
    Adding the module to the command line fixed it! Looking at the pod documentation, I know why I didn't do it before:

    <blockqoute> DESCRIPTION pp creates standalone executables from Perl programs, using the compressed packager provided by the PAR manpage, and dependency detection heuristics offered by the Module::ScanDeps manpage. Source files are compressed verbatim without compilation. </blockqoute>

    I thought that the dependency detection heuristics would autoload the Modules, but I realize now that it seems to autolad the Module dependencies, not script dependencies.

    Thanks again, Monger

Re: Re: Problems with PP and Posix
by monger (Friar) on Dec 19, 2003 at 18:08 UTC
    Hummm. I'll recompile after this and post results. What I've sent it before is

    pp -o vpnwarn.exe vpnwarn.pl

    I'll have to look at my old script and see if it used any external modules; I can't remember. But it didn't spew at me.

    Thanks, Monger