http://qs321.pair.com?node_id=593496


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 (Patriarch) 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).