Suppose I have some Perl code that looks like this
use Data::Dump q[pp];
sub something{
return 2 + 2;
}
I want it to be formatted by perltidy as
use Data::Dump q[pp];
sub something{
return 2 + 2;
}
That is, all leading whitespace eliminated and all lines aligned left, but then with indent rules applied. I've tried -dws
but that didn't work and no-one of the other options seems to do anything. Is this possible?