From: Steve Hancock Date: Tue, 8 Sep 2020 01:58:34 +0000 (-0700) Subject: add warning about inappropriate -x flag X-Git-Tag: 20200907.01~41 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fe66743541ef732db5a40e465ef39da925a6cd93;p=perltidy.git add warning about inappropriate -x flag --- diff --git a/bin/perltidy b/bin/perltidy index 1164f1ce..c8753c4a 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -3612,6 +3612,11 @@ lines before the "hash-bang" line. This option also invokes perl with a allow perltidy to parse interactive VMS scripts, but it should be used for any script which is normally invoked with C. +Please note: do not use this flag unless you are sure your script needs it. +Parsing errors can occur if it does not have a hash-bang. For example, if the +actual first hash-bang is in a here-doc, a parsing error will occur because the +tokenization will begin in the middle of the here-doc. + =item Making a file unreadable The goal of perltidy is to improve the readability of files, but there