Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: perltidy for ternary operator?by LanX (Saint) |
on Dec 06, 2014 at 19:06 UTC ( [id://1109433]=note: print w/replies, xml ) | Need Help?? |
That's a suggestion ("you can") for the case you expect new entries to come. But that's not a problem with perltidy, cause cascades (as demonstrated) would be fixed automatically. And I doubt that breaking simple ternaries would be appreciated by the majority. It might interest you that tidy's output of a simple ternaries depends on existing linebreaks: (see -bot option)¹
Since the documentation mentions ternaries only once for -bot I doubt your goal can be achieved! (i.e. without patching the code)
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
update¹) i.a.W if you expect the ternary to be cascaded in the future then enter a linebreak manually.
In Section
Seekers of Perl Wisdom
|
|