Subject: | find_perl does not find perl in some circumstances |
If calling perl causes to emit warnings (e.g. by defining a non-existing
locale env variable), then perl Makefile.PL cannot find the location of
its binary. Easy to reproduce with
env LC_ALL=does_not_exist perl Makefile.PL
There's a warning ("Unable to find a perl 5 ...) and FULL_PERL and PERL
are both zero in the generated Makefile.
It seems that this (non-)problem may be solved by either not redirecting
the stderr output when testing the perl binary in find_perl (as this
would collect the locale warnings, too) or by using the /m modifier in
the VER_OK regexp check (as this would match the VER_OK string in the
output again).
Regards,
Slaven