HARNESS_PERL

stvn_skuo on 2005-01-28T07:02:44

[sunnydale:~] skuo% prove -Iblib2/lib t/*.t

t/00load.....Perl lib version (v5.8.6) doesn't match executable version (v5.8.0) at /usr/local/lib/perl5/5.8.6/darwin/Config.pm line 32. Compilation failed in require at /usr/local/lib/perl5/5.8.6/Test/Builder.pm line 18.


It's my fault for having two different versions of perl: 5.8.6 under /usr/local/bin and Apple's default perl under /usr/bin.

It turns out that $^X is set to the string 'perl' and trips up my effort at running tests. All's well after setting HARNESS_PERL in my environment to /usr/local/bin/perl.

Perhaps one of the %Config entries should replace $^X inside Test::Harness::Straps (e.g., in &_command)?


perlpath

rafael on 2005-01-28T08:41:42

You could use $Config{perlpath}, but that won't work for uninstalled perls. See also the discussion for $^X in perlvar.