in reply to Perl::Tidy formatting question
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 }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl::Tidy formatting question
by toolic (Bishop) on Nov 22, 2011 at 16:58 UTC | |
by vendion (Scribe) on Nov 23, 2011 at 15:09 UTC | |
by toolic (Bishop) on Nov 23, 2011 at 16:04 UTC |
In Section
Seekers of Perl Wisdom