X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=BUGS;h=edca9bc7fdb9770c1d2a2f2121276a5c5172081b;hb=1ad0cf5e89247ce1a7d60872576ae14aaaee6e67;hp=79b8b44110c69444fab8fab2fa36ec6344a42a22;hpb=ed1fffa086693c62340599065543ee1d5c09ee8f;p=perltidy.git diff --git a/BUGS b/BUGS index 79b8b44..edca9bc 100644 --- a/BUGS +++ b/BUGS @@ -16,3 +16,24 @@ Perltidy open BUGS END print "$text\n"; + A workaround is to put the here-doc in a temporary string and then do + the substitution: + + my $text="Hello World!\n"; + my $str=<<'END'; + Goodbye + Cruel + END + $text =~ s@Hello@$str@e; + print "$text\n"; + + The --extrude option can occasionally produce code with syntax errors + The --extrude tries to put as many newlines in the formatted code as + possible. This option is of limited use for formatting, but it has been + helpful for debugging purposes. Occasionally it will produce code which + Perl considers to have a syntax error. These problems usually involve + code where Perl is having to guess the tokenization. For example, + --extrude will currently cause a syntax error in the following line: + + utime $inc+0 ? ($mtime, $ntime) : ($atime, $atime), $file; +