in reply to Re^2: Tidying and simplifying a regular expression
in thread Tidying and simplifying a regular expression

> In both cases trying to print the resulting expression for debugging leads to something incomprehensible that itself needs to be debugged.

It's the other way round, you can trace the past qr compilation steps, which actually helps debugging.

You are complaining about the verbosity of debugging informations, but you have to admit that your example is a very constructed edge case.

AnomalousMonk is right to ask for common cases where this becomes a problem.

I can see the point for a regex::tidy but this alone is not a very convincing incentive.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery