in reply to s///g within m//g regions
That's exactly what I would do. 3 lines max.
> But isn't there something cleaner and more general?
I beg your pardon? Plz define "cleaner"
You can certainly use some convoluted huge nested regex for this, which is hardly better maintainable.
(I'm sure tybalt is already preparing one)
Or an extra module with some proprietary parsing grammar. But that's only replacing one DSL with another.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: s///g within m//g regions
by almr (Beadle) on Nov 09, 2021 at 13:21 UTC | |
by LanX (Saint) on Nov 09, 2021 at 13:25 UTC | |
by almr (Beadle) on Nov 09, 2021 at 13:32 UTC | |
by hippo (Archbishop) on Nov 09, 2021 at 13:50 UTC | |
by LanX (Saint) on Nov 09, 2021 at 14:11 UTC | |
by LanX (Saint) on Nov 09, 2021 at 20:30 UTC | |
by LanX (Saint) on Nov 09, 2021 at 20:51 UTC | |
by almr (Beadle) on Nov 11, 2021 at 13:23 UTC | |
by hippo (Archbishop) on Nov 11, 2021 at 16:00 UTC | |
by LanX (Saint) on Nov 11, 2021 at 17:05 UTC |