--- "Hobson, Neville" <[EMAIL PROTECTED]> wrote: > I'm writing perl scripts that will be distributed to locations where > I cannot gaurantee the location of perl. Is there a clean alternative > to the shebang with the specific perl path? Maybe using an environment > variable to locate perl? > The camel book suggests the following: > > #!/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.... __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
- 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