Why not try this:
#!/bin/sh
PERLOC=`which perl`;
eval 'exec $PERLOC -S $0 ${1+"$@"}' if 0;
Or something similar. Forgive my syntax -- I'm not a sh scripter. :)
++========================================================================++
|| UNIREZ, Inc. Scott Thompson ||
++-------------------------------------------+----------------------------++
|| Address: 2555 Southwest Grapevine Parkway | Title: Programmer ||
|| Suite 200 | Phone: (817) 416-5800 ||
|| Grapevine, Texas 76051 | Extension: 104 ||
|| Fax: (817) 251-9199 | Cell: (972) 342-5660 ||
|| Web: http://www.unirez.com/ | Email: [EMAIL PROTECTED]||
++===========================================+============================++
> -----Original Message-----
> From: Paul [mailto:[EMAIL PROTECTED]]
> Subject: Re: Is there an alternative to #!/usr/bin/perl
>
> >
> > #!/bin/sh --
> > eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
> > if 0;
>
> But that's not to find perl -- that in fact assumes it's /usr/bin/perl.
>
> Geez, this one's tricky....
>