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"; }

Regards,
Murugesan Kandasamy
use perl (;;);