Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Where is the interpreter

by MaxKlokan (Monk)
on Jan 08, 2007 at 09:45 UTC ( #593496=note: print w/replies, xml ) Need Help??


in reply to Where is the interpreter

For UNIX you can use the following shebang (from perlintro), and it should work regardless of where the interpreter is, provided that it is in the path:
#!/usr/bin/env perl
As far as I know env should be always in the same place.

Replies are listed 'Best First'.
Re^2: Where is the interpreter
by ikegami (Pope) on Jan 08, 2007 at 17:03 UTC

    As far as I know env should be always in the same place.

    I heard that it's not in the same place on all systems. It definitely does not exist there in Windows (which is the important part of the question, since perl is probably in /usr/bin on the unix box).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2020-10-29 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (269 votes). Check out past polls.

    Notices?