- or download this
if($thestring =~/13/) { print "13 is in the string"; }
- or download this
if("13" =~ /13,130,213/) { print "13 is in the string"; }
- or download this
my $thestring = "13,130,213";
my $thecheck = "13";
if($thestring =~ /$thecheck/){ print "$thecheck is in $thestring\n"; }