Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Oct 2003 15:57:26 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Gary Schenk <gwschenk@socal.rr.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: using use.perl
Message-ID:  <20031003225726.GA55774@rot13.obsecurity.org>
In-Reply-To: <200310031104.17010.gwschenk@socal.rr.com>
References:  <200310031104.17010.gwschenk@socal.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031003225726.GA55774>