Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Perl script as the shebang?

by rjbs (Pilgrim)
on Sep 19, 2004 at 01:16 UTC ( #392082=note: print w/ replies, xml ) Need Help??

in reply to Perl script as the shebang?

While other suggestions are, in my opinion, better, you will find that zsh will allow you to put shebang-powered scripts in the shebang line. The kernel execve call will fail, but zsh will pick up the pieces.

Just another reason that zsh is the bee's knees!

Comment on Re: Perl script as the shebang?
Replies are listed 'Best First'.
Re^2: Perl script as the shebang?
by Aristotle (Chancellor) on Sep 19, 2004 at 07:28 UTC

    But that will work only from within zsh. If you want to run such a script from somewhere else (like as a CGI script, or maybe during the init scripts which are usually executed by a more lightweight sh), you still need one of the other solutions.

    Makeshifts last the longest.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2015-12-01 01:09 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (790 votes), past polls