A
Anno Siegel
Brian McCauley said:Oh, come on! Compared to s///e, code blocks in regex, and map, and ?:
and... I could go on for ages. There are lots of constructs you can
nest inappropriately and produce utterly incomprehensible code. I
simply cant see why this one case should be so different.
There are dialects of Basic that allow nested modifiers. Nested loops
are an horror written that way.
Er... I hit several a week in my work.
The only combinations I would really like to use are combinations of
postfix "if" with the others. That are four:
EXPR if COND while COND
EXPR while COND if COND
STATEMENT if COND for LIST
EXPR for LIST if COND
Okay, eight if you count "unless" too.
The combination with "if" is the least problematic because "if"
doesn't do things to $_.
actually makes the compiler more complex not less.
If compiler complexity were a criterion, Perl would belong on the
dung heap
....oh, and while I'm wishing, i also want
map EXPR while COND
Anno
Anno