Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: CPAN's perltidy to the rescue! (not for 'standards')by tobyink (Canon) |
on Jul 14, 2012 at 12:20 UTC ( [id://981812]=note: print w/replies, xml ) | Need Help?? |
I pretty much never use perltidy. With enough command-line options, I can more or less get perltidy to respect my personal coding style. However, the problem is that it's not smart enough to realise when I'm deliberately disobeying my own conventions. For example, I don't want a deliberately compacted do{if/elsif/else} block, a la...
... to be expanded to my normal conventions of opening and closing braces on their own lines:
... even though the latter sticks to my "official" coding style to the letter. I think coding styles need to be flexible enough to cope with exceptions when those exceptions make the code more readable.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Meditations
|
|