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? I haven't tried to script it but what about 'which perl' ?
- Is there an alternative to #!/usr/bin/perl Hobson, Neville
- Re: Is there an alternative to #!/usr/bin/perl Jos I Boumans
- Re: Is there an alternative to #!/usr/bin/perl Nigel G Romeril
- Re: Is there an alternative to #!/usr/bin/perl Adam Turoff
- Re: Is there an alternative to #!/usr/bin/perl Paul
- RE: Is there an alternative to #!/usr/bin/perl Scott Thompson
- Re: Is there an alternative to #!/usr/bin/perl Timothy Kimball
- Re: Is there an alternative to #!/usr/bin/perl Timothy Kimball
- Re: Is there an alternative to #!/usr/bin/perl Peter Cornelius
- Re: Is there an alternative to #!/usr/bin/perl Stephen P. Potter
- Re: Is there an alternative to #!/usr/bin/perl Timothy Kimball