Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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!
rjbs


Comment on Re: Perl script as the shebang?
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-09-16 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (36 votes), past polls