in reply to Regex help
ormy $pattern = qr/AB/;
It also incorporates regex switches into the regex, so you can't globally override them. For example, if $pattern looks like "A B", if you use it in /$pattern/x, the space would be stripped from the subpattern. But not with qr.my $pattern = "AB"; $pattern = qr/$pattern/;
|
|---|