in reply to Regex from a variable...
Update: Watch my typos there. 2nd line should read if ($dateline =~ m/$regex/) {$regex = "ISOLATION"; if ($dataline =~ m/$regex/"; print "Found a match!\n"; } else { print "No match!\n"; }
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot";
$nysus = $PM . $MCF;
|
|---|