in reply to
Re: How does this regex not match?
in thread How does this regex not match?
I am informed by /msg from targetsmart that the example code in Re: How does this regex not match? works in Perl 5.6.1, Windows XP, to demonstrate the operation of quotemeta. I cannot see how, but I cannot test it in 5.6.1 (or even 5.8.x at the moment). It does not work in Strawberry 22.214.171.124, Windows 7.
The following example code works to demonstrate quotemeta in Strawberry 126.96.36.199:
>perl -wMstrict -le
"my $var = quotemeta 'my_stuff';
print 'match' if 'my_stuff=400' =~ /$var/;