Hi There,
Brand new to using PAR. It seems pretty straight forward. But, of course, I'm having
difficulties... Bah!
Ok, I'm doing this on WinXP Home Edition, running...
Apache/1.3.29 (Win32) mod_perl/1.29_01-dev and ActivePerl 5.8
Used PPM to install PAR.
I created a perl module (/perl/lib/Craig/PostAds.pm), which had subroutines.
I broke out the subroutines into a separate file (/perl/lib/Craig/MySubs.pm) and made
all the subs "exportable".
Tested it to make sure it worked WITHOUT PAR via...
use Craig::MySubs;
It worked fine!!!
Next, I created a zip file, using winzip ("any zip tools can generate them"),
containing MySubs.pm, into "foo.par".
Next, modified PostAds.pm to include...
use PAR;
use lib "/perl/lib/Craig/foo.par";
use Craig::MySubs;
Obviously, I moved the original MySubs.pm file elsewhere, or it would have found the
un-PAR'd version.
When I restart Apache, it fails to find the subs in MySubs.pm
Can't locate MySubs.pm in @INC (@INC contains: /Perl/lib/Craig/foo.par CODE(0xc3
7188) c:/Perl/lib c:/Perl/site/lib . c:/apache/ c:/apache/lib/perl) at c:/Perl/l
ib/Craig/PostAds2.pm line 16.
BEGIN failed--compilation aborted at c:/Perl/lib/Craig/PostAds2.pm line 16.
Compilation failed in require at (eval 20) line 3.
I'm sure it's something simple, but I haven't figured it out yet... Any ideas???
Thanks!
John