in reply to Re^4: Reusing a complex regexp in multiple spots, escaping the regexp
in thread Reusing a complex regexp in multiple spots, escaping the regexp
Anyway I'm confused, there may be a difference if a $var= qr/.../ is used directly as a RHS of a match or is interpolated inside a bigger regex.
And since it's possible to stringify a qr-object and use the string instead, this adds another layer of confusion.
I have to think hard about a concise way to test all of this which wouldn't result in a tl;dr monstrum.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Reusing a complex regexp in multiple spots, escaping the regexp
by sleet (Pilgrim) on Apr 15, 2026 at 22:32 UTC | |
by LanX (Saint) on Apr 16, 2026 at 12:27 UTC | |
by tobyink (Canon) on Apr 16, 2026 at 13:00 UTC | |
by LanX (Saint) on Apr 16, 2026 at 14:39 UTC | |
by tobyink (Canon) on Apr 16, 2026 at 15:05 UTC | |
|