Lightning flashed, thunder crashed and Peter Cornelius <c-peter.cornelius@livep
lanet.com> whispered:
| The camel book suggests the following:
| 
| #!/bin/sh --
| eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
|   if 0;
| 
| Is this the best alternative and are there situations in which it might not
| work?

The camel suggests this for systems that don't properly parse the shebang
line.  It isn't useful if perl isn't in /usr/bin/perl.  If you can be sure
that perl is in the user path somewhere, you can use

eval 'exec perl -S $0 ${1+"$@"}
     if 0;

Again, that's only good if you are sure perl is in the path somewhere.

-spp

Reply via email to