From: Steve Hancock <perltidy@users.sourceforge.net> Date: Fri, 2 Oct 2020 22:43:20 +0000 (-0700) Subject: update docs X-Git-Tag: 20201001.01~29 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0d832c619d6cba1a40f65465e19be91028e5eeea;p=perltidy.git update docs --- diff --git a/bin/perltidy b/bin/perltidy index c542cb47..25a23c69 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -1251,11 +1251,11 @@ program vulnerable to parsing problems by Perl. For example, the following two-line program will run as written but will have a syntax error if reformatted with -sfp: - if ( -e filename() ) { print "exists\n"; } + if ( -e filename() ) { print "I'm here\n"; } sub filename { return $0 } -The syntax error can be removed if the line order is reversed, so that -Perl parses 'sub filename' first. +In this particular case the syntax error can be removed if the line order is +reversed, so that Perl parses 'sub filename' first. =item B<-spp=n> or B<--space-prototype-paren=n>