in reply to Checking for occurrence in comma separated string
Just exchange the varaibles in the match part....
if ($thestring =~ /$thecheck/) { print "$thecheck is in $thestring"; } [download]
Regards,Murugesan Kandasamyuse perl (;;);