in reply to Testing if a string is a substring

Ouch. Do you like making life hard for yourself :)

I think you're looking for the index function.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg