View Single Post
Old 02-25-2006, 11:25 PM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
short answer
Code:
$string1 = "adacatgas";
$string2 = "cat";
print "matched\n" if ($string1 =~ m/$string2/);
long answer: http://www.hmug.org/man/1/perlretut.php
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote