From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 5 09:26:34 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C46F016A4B3 for ; Sun, 5 Oct 2003 09:26:34 -0700 (PDT) Received: from storming.org (MG035035.user.veloxzone.com.br [200.165.35.35]) by mx1.FreeBSD.org (Postfix) with SMTP id E9F7A43FEC for ; Sun, 5 Oct 2003 09:26:32 -0700 (PDT) (envelope-from fred@storming.org) Received: (qmail 1225 invoked by uid 1000); 5 Oct 2003 13:26:31 -0300 Date: Sun, 5 Oct 2003 13:26:30 -0300 From: Fred Souza To: Dan Langille Message-ID: <20031005162630.GA1158@torment.storming.org> References: <20031005111656.R18760@xeon.unixathome.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <20031005111656.R18760@xeon.unixathome.org> X-Sender: fred@storming.org cc: freebsd-hackers@freebsd.org Subject: Re: testing for substrings in perl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fred@storming.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2003 16:26:34 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I think it might just be easier to do a straight comparison of the first N > characters of the two strings where N =3D length of the directory name. >=20 > Any suggestions? You might try index() or substr(). Fred --=20 "MOTHER: Half a word." --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/gEY2ZNmEsrl+ROERAm3LAKChsuRvqdjsdIFFFytsy32ZT0xrBgCgtY5G KDzF/R8wCb8VffhjfF75B/g= =/qxq -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--