in reply to Re: portable "#!" line?
in thread portable "#!" line?

The "env perl" probably won't provide what I want, as it provides the first perl binary found in a series of dirs, but what I want is the location of installer's binary.

Replies are listed 'Best First'.
Re^3: portable "#!" line?
by frozenwithjoy (Priest) on Jul 02, 2012 at 14:45 UTC

    First off, which OS do you and your colleagues use? The majority of my perl XP comes from OS X and linux, so if you are using Windows, I don't know if the following will help at all.

    I use perlbrew and #!/usr/bin/env perl always works for me. If using perlbrew is impractical, why not add the desired perl install to the beginning of the $PATH. It seems like this should always be the case and if it isn't, the user will be overriding the #! anyway if they directly call the perl they want to use.