I'm not asking why Perl::Critic. I'm asking why this policy. If you've got a subroutine that's too long/indented, you can split it, give some parts their own name and you end up with something that's better than the original. For some definitions of better.
Doing the same with a regexp is most often either impossible, complicates the code or most of the proposed implementation of this policy would not even notice you've made any change. Perl::Critic should point out places you should probably change, there's no point in pointing out things you can't change.
In reply to Re^3: Assessing the complexity of regular expressions
by Jenda
in thread Assessing the complexity of regular expressions
by kyle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |