|
Ongoing perl help
Hi guys, got a project due in soon so may continually ask little questions, lets hope not.
Current problem;
I am comparing to strings
if ($string1 eq $string2)
but i want it so its less rigid. For instance, there would be a match if string1 was adacatgas and string2 was cat, so it would match if string2 existed anywhere within string1, is there a perl function or would i have to write one?
Thanks in advance
Last edited by pungi; 02-25-2006 at 04:40 PM.
|