From bfaac58df8ecb6183d33606a23da4093c3afd73f Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Thu, 1 Oct 2020 11:56:36 -0700 Subject: [PATCH] update docs regarding syntax errors --- bin/perltidy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5