Matthew Knopp wrote:
Interestingly I can "fix" the problem by setting PAR_CLEAN=1. A
This also fixes the problem I was having with Class::DBI that I reported
to the list a week or two ago.
Is there any easy way to set the PAR_CLEAN variable from within my
module(s) so that PAR picks it up?
I tried a dumb: $ENV{PAR_CLEAN} = 1; at the top of my module, this gave
me no joy..
I also tried the more devious (but equally fruitless):
use PAR;
package PAR;
local $ENV;
$ENV{PAR_CLEAN} = 1;
package MyPackage;
which has the same lack of effects.
An alternative would be to specify clean: 1 in my Meta.YAML file for my
module .par files, however:
a) I can't do that and trivially build modules with par.pl -p (as it
doesn't support this feature)
b) That is overridden by PAR_CLEAN anyway..
Any hints (or fix to the root cause) would be appreciated ;)
Cheers
Tomas