in reply to Re: Reusing a complex regexp in multiple spots, escaping the regexp
in thread Reusing a complex regexp in multiple spots, escaping the regexp
Intuitively, I would have opted for interpolating nested $variables holding qr// snippets, especially since I can make them more readable with /x and can unit test them individually.
But I'm curious to learn why you chose this way.
Is it about the handling of capture groups?
I tried to read the relevant docs, but they constantly mention recursion and I can't spot any here...
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reusing a complex regexp in multiple spots, escaping the regexp
by ikegami (Patriarch) on Apr 14, 2026 at 19:18 UTC | |
by sleet (Pilgrim) on Apr 15, 2026 at 18:01 UTC | |
by LanX (Saint) on Apr 15, 2026 at 20:27 UTC | |
by sleet (Pilgrim) on Apr 15, 2026 at 22:32 UTC | |
by LanX (Saint) on Apr 16, 2026 at 12:27 UTC | |
| |
by LanX (Saint) on Apr 15, 2026 at 09:42 UTC |