Steve Hay wrote:
> I may have found the problem, but I'm not sure -- it seems so obvious
> that surely it would have come up before, and doesn't explain why PAR +
> perl-5.8.7 apparently works on other OS's...
> I think the problem may be that Config_heavy.pl is written out as a
> tempfile and not added to %require_list.
>
> As a result, the subsequent coderef @INC doesn't find the file because
> it checks for the file's existence in %require_list:
>
> my $filename = delete $require_list{$module} || do {
> my $key;
> foreach (keys %require_list) {
> next unless /\Q$module\E$/;
> $key = $_; last;
> }
> delete $require_list{$key} if defined($key);
> } or return;
>
> Hence the attached patch, which treats .pl files the same way as .pm
> files, fixes things for me. The full test suite still passes too.
It looks sane to me. Maybe it works on other OSes because
Config_heavy.pl is somehow already found on the system. Anyway, in the
spirit of Autrijus' anarchical devlopment, thanks, applied as #7. :)
(subversion repos being at http://svn.openfoundry.org/par/trunk)