On 2/23/07, David Cantrell <[EMAIL PROTECTED]> wrote:
Thankfully, the fix is easy.  You should be able to change run_QF.pl to
get rid of the shebang line and instead exec() it like:

    exec("$^X -w bin/runQF.pl --testquery t/test");

$^X is one of perl's magic internal variables, and gives you the full
path and name for the interpreter.

A couple thoughts in response to that.  "perldoc perlport" suggests
that $^X isn't always portable because of file extensions and has
suggested workarounds.  Personally, I use Probe::Perl, which was
written by the Module::Build team as it encapsulates all this:

 Probe::Perl->find_perl_interpreter();

An alternative hack for the shebang line I've seen (for most *nix
systems, at least) uses an absolute path to "env" as a way of running
"perl" using the current $PATH:

 #!/usr/bin/env perl -w

David

Reply via email to