in reply to Re^15: Reusing a complex regexp in multiple spots, escaping the regexp
in thread Reusing a complex regexp in multiple spots, escaping the regexp
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???
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^17: Reusing a complex regexp in multiple spots, escaping the regexp
by dave_the_m (Monsignor) on Apr 17, 2026 at 14:52 UTC | |
by LanX (Saint) on Apr 17, 2026 at 15:13 UTC | |
by dave_the_m (Monsignor) on Apr 17, 2026 at 15:29 UTC | |
by LanX (Saint) on Apr 17, 2026 at 17:07 UTC |