From fe66743541ef732db5a40e465ef39da925a6cd93 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Mon, 7 Sep 2020 18:58:34 -0700 Subject: [PATCH] add warning about inappropriate -x flag --- bin/perltidy | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5