To my knowledge, perltidy is extremely handy and helpful when it comes to code formatting. However, I haven't found a way to fine-tune perltidy. For example, I need the && and || formatted so that there are two spaces before and after them. Like this:
$some && $x > 7;
Can I do it? If so, how?
It's easy enough to rig up your own tidy script with
PPIthat you can run afterperltidy. Proof-of-concept:And if we run this script on itself, we get:
It did insert the extra spaces around the only
||operator on line 4.