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 | |
by gepebril69 (Scribe) on Jul 20, 2012 at 14:52 UTC | |
by marto (Cardinal) on Jul 20, 2012 at 14:56 UTC |