in reply to PP: Executables still need require files.....

I can't think of a sensible way to get this to work with the File::HomeDir module. Perhaps it would be better if you took a slightly different approach and had your required files in a sub directory of your main script, for example:

pptest.pl:

#!/usr/bin/perl use strict; use warnings; require "tmpinc\\foo.pl"; require "tmpinc\\bar.pl";

tmpinc\foo.pl:

#!/usr/bin/perl print "in foo.pl\n";

tmpinc\bar.pl:

#!/usr/bin/perl print "in bar.pl\n";

packaging with a command similar to you:

c:\pp -o pptest.exe -x -c pptest.pl

and running the resulting executable shows:

C:\>pptest.exe in foo.pl in bar.pl

Replies are listed 'Best First'.
Re^2: PP: Executables still need require files.....
by gepebril69 (Scribe) on Jul 20, 2012 at 14:38 UTC
    Ok,

    I will give it a try, was using this File::HomeDir as I was developing on two different servers.

      It worked!!!!

      Thanks very much!

        No problem, glad it helped.