From owner-freebsd-questions@FreeBSD.ORG Fri Oct 3 15:57:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80A2716A4B3 for ; Fri, 3 Oct 2003 15:57:54 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-107-253.dsl.lsan03.pacbell.net [64.169.107.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FA6C4400D for ; Fri, 3 Oct 2003 15:57:31 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 3B62666C9E; Fri, 3 Oct 2003 15:57:27 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id E4FADADA; Fri, 3 Oct 2003 15:57:26 -0700 (PDT) Date: Fri, 3 Oct 2003 15:57:26 -0700 From: Kris Kennaway To: Gary Schenk Message-ID: <20031003225726.GA55774@rot13.obsecurity.org> References: <200310031104.17010.gwschenk@socal.rr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <200310031104.17010.gwschenk@socal.rr.com> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: using use.perl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2003 22:57:54 -0000 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 03, 2003 at 11:04:16AM -0700, Gary Schenk wrote: > I'm running 4.7-RELEASE as my home desktop. I've compiled perl 5.8 from= =20 > the ports. It was installed in /usr/local/bin/perl. >=20 > After that installation # perl -v resulted in perl, version 5.005_3 >=20 > # /usr/local/bin/perl -v resulted in perl, v 5.8.0 >=20 > If I call /usr/local/bin/perl in my scripts, I realize that the new=20 > version will be used.=20 >=20 > However after running the command # use.perl port, I wonder if old=20 > scripts that call /usr/bin/perl will be interpreted under v 5.8.0. >=20 > If there was a symbolic link placed between /usr/local/bin/perl and=20 > /usr/bin/perl which version would be used? That's precisely what use.perl does: xor# ls -l /usr/bin/perl lrwxr-xr-x 1 root wheel 19 Jun 19 17:34 /usr/bin/perl -> /usr/local/bin/= perl Therefore, scripts that call /usr/bin/perl will execute the version installed in /usr/local/bin/perl, i.e. 5.8.0 in your case. Kris --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/ff7WWry0BWjoQKURAiIZAJ0deTCUwOboJA3YRU8wudXT7VSlIQCfeU6q tulAktzsR4+KgWUk5WFftao= =n29Y -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--