Perltidy Unalign assignment operators (= and =>)

313 views Asked by At

I have code that was previous formatted by perltidy. It has assignment operators aligned. How can I get perltidy to unalign the assignment operators. I've been all over the manual, trying and experimenting. Here's my current argument list:

-i=2 -nt -bt=2 -bbvt=0 -dws -asc -dsm -vt=2 -pt=2 -nwls='= =>' -wls='= =>' -sak='if elsif for while unless'

Note, what I want is -nwls='= =>' -wls='= =>', which is to say, delete all the whitespace left of the = or => operators, but then add one space to the left. I'm figuring that what I really need to do is just write a script that runs perltidy twice to remove the whitespace around =, then add it again.

0

There are 0 answers