Hey, #perl fans. Is there any way to get perltidy to not add an extra space after an attribute colon?
In other words, don't have this:
my $var :foo;
Turned into this:
my $var : foo;
Hey, #perl fans. Is there any way to get perltidy to not add an extra space after an attribute colon?
In other words, don't have this:
my $var :foo;
Turned into this:
my $var : foo;
@ovid Either of the perltidy options:
-nwrs='A'
or
--no-want-right-space='A'
ought to do it. “A” is the token #perltidy uses for #Perl attribute separators according to the output of `perltidy --dump-token-types`.
Feel free to put either in your .perltidyrc file. I prefer to use long option names as they’re more self-documenting or at least easier to search for.