Date: Sun, 5 Oct 2003 13:26:30 -0300 From: Fred Souza <fred@storming.org> To: Dan Langille <dan@langille.org> Cc: freebsd-hackers@freebsd.org Subject: Re: testing for substrings in perl Message-ID: <20031005162630.GA1158@torment.storming.org> In-Reply-To: <20031005111656.R18760@xeon.unixathome.org> References: <20031005111656.R18760@xeon.unixathome.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031005162630.GA1158>