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 18.104.22.168, Windows 7.
The following example code works to demonstrate quotemeta in Strawberry 22.214.171.124:
>perl -wMstrict -le
"my $var = quotemeta 'my_stuff';
print 'match' if 'my_stuff=400' =~ /$var/;