On Wednesday, February 26, 2003, at 09:59 AM, Nicholas Clark wrote to the Inline list:


As promised, er, a few months ago, here is a patch that makes Inline
work reliably when there is more than one perl installed, and all *think*
that they are (say) /usr/local/bin/perl

You mean that all of them have /usr/local/bin/perl as $Config{perlpath}, or that somehow symlinks or shebang paths are giving them that impression?



With this Inline will "believe" $^X in preference to $Config{perlpath}
if $^X is an absolute path, so that Inline will get the same perl as is
running the script, despite the sysadmin's best efforts to confuse things
by installing more perl versions.

I'm interested in getting this right for Module::Build too. This seems like a reasonable approach to take. I think the big problem with $^X is that it can sometimes be set to just "perl" or something in shebang scripts, so checking for an absolute path seems like a good way to go. Thanks.


-Ken

Reply via email to