in reply to Sidestepping the Shebang

Unlike most interpreters, Perl does pay attention to the she-bang line, and it may fire up the interpreter mentioned on it if it thinks that isn't some form of perl.

Could you tell us the exact she-bang line, and tell us the exact command line you give that fails? The OS might be useful as well.

Perl --((8:>*

Replies are listed 'Best First'.
Re^2: Sidestepping the Shebang
by Sprad (Hermit) on Nov 02, 2005 at 17:06 UTC
    Sure thing.

    Shebang line:
    #!/usr/bin/perl

    Command line:
    /tmp/perl -x /home/sprad/test/broken.pl

    This is on a Linux box. Red Hat 7.2, if it makes a difference. Bash shell. I've tried it with and without the -x flag, no difference.

    ---
    A fair fight is a sign of poor planning.

      That means perl shouldn't fire up "/usr/bin/perl", so that isn't the problem. I'm afraid I can't further help you - I don't think I can replicate your behaviour (I often run with a different version of perl than mentioned on the she-bang line, and never have problems with it.)
      Perl --((8:>*