in reply to Re: A shebang line conundrum
in thread A shebang line conundrum

Should have mentioned this in the original post, but the SGI machines have two versions of perl. Unfortunately, "perl" on the SGIs invokes the old 4.x version; otherwise this solution would work great.

Thanks

Replies are listed 'Best First'.
Re: Re: Re: A shebang line conundrum
by perrin (Chancellor) on Oct 04, 2002 at 21:15 UTC
    You can say this:
    #!/usr/bin/env perl
    If you make sure the right perl is first in your path, it will run that. This is all in the perlrun manpage.