I tried your code on "unthreaded" perl and it prints twice.
It seems like this weird "interpolation" ° resolves to "x1" =~ /x1/ which doesn't make much sense as a bug demo.
I don't understand how this is proving anything???
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
°) seems like you are dereferencing a ref to the literal number 1
DB<1> say "${\1}" 1
you probably meant a the regex back-reference to the first match \1 ? But there is no first match ... ehm???
In reply to Re^16: Reusing a complex regexp in multiple spots, escaping the regexp
by LanX
in thread Reusing a complex regexp in multiple spots, escaping the regexp
by ecm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |