Skip site navigation (1)Skip section navigation (2)
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>

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

[-- Attachment #1 --]
> I think it might just be easier to do a straight comparison of the first N
> characters of the two strings where N = length of the directory name.
> 
> Any suggestions?

  You might try index() or substr().


  Fred


-- 
"MOTHER:
        Half a word."

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/gEY2ZNmEsrl+ROERAm3LAKChsuRvqdjsdIFFFytsy32ZT0xrBgCgtY5G
KDzF/R8wCb8VffhjfF75B/g=
=/qxq
-----END PGP SIGNATURE-----
help

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