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;
In reply to Re: Regex from a variable...
by nysus
in thread Regex from a variable...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |