Just exchange the varaibles in the match part....
if ($thestring =~ /$thecheck/) { print "$thecheck is in $thestring"; }
Regards,
Murugesan Kandasamy
use perl (;;);
In reply to Re: Checking for occurrence in comma separated string
by murugu
in thread Checking for occurrence in comma separated string
by Delusional
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |