http://qs321.pair.com?node_id=824103


in reply to Re^2: in search of a more elegant if then else
in thread in search of a more elegant if then else

It gets unreadable for all but the most trivial of expressions

Right. It's possible to back yourself (or front yourself, if you're twisted :) into monstrosities with it. The classic C 12 Days of Christmas puts it to good (?) use, among its other distortions.

Like a lot of things in perl (or any language, really), you just have to keep an eye on yourself to be sure you stay inside the lines. My two rules of thumb are length and nestedness:

(None hard rules of course, but signs that I'm wandering off the beam and should take a step back to reevaluate)