Perltidy open BUGS

 You can help perltidy evolve into a better program.  If you think you
 have hit a bug or weird behavior, or have a suggested improvement,
 please send a note to perltidy at users.sourceforge.net.
 This file only lists open bugs.  For bugs which have been fixed, 
 see the ChangeLog.

A here-doc invoked through an 'e' modifier on a pattern replacement text is not recognized

For example, the output of perltidy for this script has a syntax error:

        my $text="Hello World!\n";
        $text =~ s@Hello@<<'END'@e;
        Goodbye 
        Cruel
        END
        print "$text\n";

Limitation parsing subroutine attributes and prototypes

Subroutine prototypes and attributes (a perl 5.6 feature) are not correctly parsed unless they are on the same line as the subroutine name. (Older versions of perl require the prototype to be on the same line as the sub name, but perl 5.6 allows it to be on a separate line). For example, this would cause an error:

   sub pi 
   ()
   {
     4 * atan2(1,1);
   }

The workaround is to simply place the prototype and/or attribute on the same line as the sub name, like this:

   sub pi ()
   {
     4 * atan2(1,1);
   }

I have not encountered this problem in an actual script. Fixing it is low priority.