]> git.donarmstrong.com Git - perltidy.git/blob - BUGS
* upgrade to the 20060614 release
[perltidy.git] / BUGS
1 Perltidy open BUGS
2      You can help perltidy evolve into a better program.  If you think you
3      have hit a bug or weird behavior, or have a suggested improvement,
4      please send a note to perltidy at users.sourceforge.net.
5
6      This file only lists open bugs.  For bugs which have been fixed, 
7      see the ChangeLog.  
8
9   A here-doc invoked through an 'e' modifier on a pattern replacement text is not recognized
10     For example, the output of perltidy for this script has a syntax error:
11
12             my $text="Hello World!\n";
13             $text =~ s@Hello@<<'END'@e;
14             Goodbye 
15             Cruel
16             END
17             print "$text\n";
18
19     A workaround is to put the here-doc in a temporary string and then do
20     the substitution:
21
22             my $text="Hello World!\n";
23             my $str=<<'END';
24             Goodbye 
25             Cruel
26             END
27             $text =~ s@Hello@$str@e;
28             print "$text\n";
29
30   The --extrude option can occasionally produce code with syntax errors
31     The --extrude tries to put as many newlines in the formatted code as
32     possible. This option is of limited use for formatting, but it has been
33     helpful for debugging purposes. Occasionally it will produce code which
34     Perl considers to have a syntax error. These problems usually involve
35     code where Perl is having to guess the tokenization. For example,
36     --extrude will currently cause a syntax error in the following line:
37
38      utime $inc+0 ? ($mtime, $ntime) : ($atime, $atime), $file;
39