From owner-freebsd-perl@FreeBSD.ORG Sun Jan 30 03:35:18 2005 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F47C16A4CE; Sun, 30 Jan 2005 03:35:18 +0000 (GMT) Received: from a2.scoop.co.nz (aurora.scoop.co.nz [203.96.152.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id DADB443D4C; Sun, 30 Jan 2005 03:35:17 +0000 (GMT) (envelope-from andrew@scoop.co.nz) Received: from localhost (localhost [127.0.0.1]) by a2.scoop.co.nz (8.12.11/8.12.11) with ESMTP id j0U3ZGZF021279; Sun, 30 Jan 2005 16:35:17 +1300 (NZDT) (envelope-from andrew@scoop.co.nz) Date: Sun, 30 Jan 2005 16:35:16 +1300 (NZDT) From: Andrew McNaughton To: perl@freebsd.org In-Reply-To: <41FBFDD9.7070605@mac.com> Message-ID: <20050130162753.D9021@a2.scoop.co.nz> References: <20050129202425.GA56998@heechee.tobez.org> <20050129220905.46ab86ae.lehmann@ans-netz.de> <41FBFDD9.7070605@mac.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (a2.scoop.co.nz [127.0.0.1]); Sun, 30 Jan 2005 16:35:17 +1300 (NZDT) X-Virus-Scanned: ClamAV 0.80/643/Sun Dec 26 11:47:31 2004 clamav-milter version 0.80j on a2.scoop.co.nz X-Virus-Status: Clean cc: freebsd-stable@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: [HEADS UP] perl symlinks in /usr/bin will be gone X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2005 03:35:18 -0000 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/ andrew@scoop.co.nz Mobile: +61 422 753 792