On Sat, 29 Jan 2005, Chuck Swiger wrote:
Oliver Lehmann wrote:
Anton Berezin wrote:
In practical terms this will mean a one-time sweep of your scripts in
order to convert them, in a typical case, from #! /usr/bin/perl to
#! /usr/local/bin/perl.
Wouldn't that break most of the 3rd party scripts out in the world?
Well-behaved 3rd party scripts ought to start Perl via:
#! /usr/bin/env perl
...so long as /usr/local/bin is in the $PATH, they should still work fine.
I commonly use this approach, but I run into some problems with flags.
Probably a simple gotcha someone can help with.
Eg the following useful constructs don't work:
#!/usr/bin/env perl -p
#!/usr/bin/env perl -T
#!/usr/bin/env perl -w
Andrew McNaughton
--
The United States is committed to the worldwide elimination of
torture and we are leading this fight by example."
- George Bush, 26 June 2003
-------------------------------------------------------------------
Andrew McNaughton http://www.scoop.co.nz/
[EMAIL PROTECTED] Mobile: +61 422 753 792
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"