From: Steve Hancock Date: Thu, 1 Oct 2020 18:56:36 +0000 (-0700) Subject: update docs regarding syntax errors X-Git-Tag: 20201001.01~34 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bfaac58df8ecb6183d33606a23da4093c3afd73f;p=perltidy.git update docs regarding syntax errors --- diff --git a/bin/perltidy b/bin/perltidy index 45926b67..c542cb47 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -1192,7 +1192,8 @@ But the following will give a syntax error: # perltidy -nwrs='+', syntax error: for my $severity ( reverse $SEVERITY_LOWEST +1 .. $SEVERITY_HIGHEST ) { ... } -As a general rule, it seems best to keep whitespace balanced around binary operators. +To avoid subtle parsing problems like this, it is best to avoid spacing a +binary operator asymetrically with a space on the left but not on the right. =item Space between specific keywords and opening paren