I also have a question on Perl::Tidy's formatting, one complaint I have is the new line for else statements. So a if/else statement that looks like this:
Which in my option is perfectly readable becomes this once ran through Perl::Tidy:if ( $foo eq 'bar' ) { # Do something } else { # Do something else }
I don't quite get the reason for breaking the else statement in such a way and if there is a way to tell it not to do such, I may have over looked it when reading through the man for it, please let me know. Also if there is some really good reason why Perl::Tidy would default to doing this that is considered best practice and doesn't cause Perl::Critic on its most brutal setting to complain about it please enlighten me.if ( $foo eq 'bar' ) { # Do something } else { # Do something else }
In reply to Re: Perl::Tidy formatting question
by vendion
in thread Perl::Tidy formatting question
by pukku
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |