in reply to Re: Data files in a .par file
in thread Data files in a .par file
Yes, a possible solution is to not use PAR at all!
You can replace:
(a.k.a. use PAR 'Bam-Kapow';) by:use PAR; use lib 'Bam-Kapow';
which produces the output:BEGIN { use Archive::Zip; my $zip = new Archive::Zip('Bam-Kapow.par'); $zip->extractTree('', 'shazam/'); use lib 'shazam/lib'; } END { use File::Path; rmtree 'shazam/'; }
Of course, it would be nicer if PAR provided an option to do that, something like:Using Bam::Kapow version 0.01 MOTD: Message of the day: PAR rules! Got Bam::Kapow from shazam/lib/Bam/Kapow.pm
which would make it behave the same way it does when it's wrapped up in an executable.use PAR 'extract';
In Section
Seekers of Perl Wisdom