You could also use the magic of qr//
But only if you cut-and-paste the string, not if you do:
$filename_b_re = qr /$filename_b/;
It's not the magic of qr that makes it work, it's the magic of cut-and-paste. This will work too:
print $filename_a =~ /c:\\abc.log/; # output is 1
Abigail
In reply to Re: NT paths and regexp
by Abigail-II
in thread NT paths and regexp
by tent8f
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |