Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: bracket processingby haukex (Archbishop) |
on Mar 31, 2020 at 07:25 UTC ( [id://11114833]=note: print w/replies, xml ) | Need Help?? |
I can only generate the given output when I add the -keep switch to the RE_balanced() call. What version are you using? From Regexp::Common::balanced: Since version 2013030901, $1 will always be set (to the entire matched substring), regardless whether {-keep} is used or not.
In Section
Seekers of Perl Wisdom
|
|