Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Sidestepping the Shebang

by Perl Mouse (Chaplain)
on Nov 02, 2005 at 16:53 UTC ( [id://505000]=note: print w/replies, xml ) Need Help??


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:>*

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://505000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2025-06-14 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.