How can I prevent PerlTidy from aligning my assignments?

Posted by nick on Stack Overflow See other posts from Stack Overflow or by nick
Published on 2010-06-17T13:09:43Z Indexed on 2010/06/17 13:13 UTC
Read the original article Hit count: 192

Filed under:

By default, PerlTidy will line up assignments in my code. E.g.

PerlTidy changes this...

my $red = 1;
my $green = 2;
my $yellow = 3;
my $cyan = 4;

...into this...

my $red    = 1;
my $green  = 2;
my $yellow = 3;
my $cyan   = 4;

How do I prevent this from happening? I've trawled the manual but I can't find a solution.

Thanks!

© Stack Overflow or respective owner

Related posts about perltidy