Download Latest Version Perl-Tidy-20250616.tar.gz (1.2 MB)
Email in envelope

Get an email when there's a new version of perltidy

Home / 20220613
Name Modified Size InfoDownloads / Week
Parent folder
Perl-Tidy-20220613.tar.gz 2022-06-13 904.7 kB
README.txt 2022-06-13 2.7 kB
Perl-Tidy-20220613.zip 2022-06-13 965.2 kB
Totals: 3 Items   1.9 MB 0
## Changes from version version 20220217 to 20220613

    - No significant bugs have been found since the last release but users
      of programs which call the Perl::Tidy module should note the first
      item below, which changes a default setting.  The main change to
      existing formatting is the second item below, which adds vertical
      alignment to 'use' statements.

    - The flag --encode-output-strings, or -eos, is now set 'on' by default.
      This has no effect on the use of the 'perltidy' binary script, but could
      change the behavior of some programs which use the Perl::Tidy module on
      files encoded in UTF-8.  If any problems are noticed, an emergency fix
      can be made by reverting to the old default by setting -neos.  For
      an explanation of why this change needs to be made see:

      https://github.com/perltidy/perltidy/issues/92

      https://github.com/perltidy/perltidy/blob/master/docs/eos_flag.md

    - Added vertical alignment for qw quotes and empty parens in 'use'
      statements (see issue #git 93).  This new alignment is 'on' by default
      and will change formatting as shown below. If this is not wanted it can
      be turned off with the parameter -vxl='q' (--valign-exclude-list='q').

        # old default, or -vxl='q'
        use Getopt::Long qw(GetOptions);
        use Fcntl qw(O_RDONLY O_WRONLY O_EXCL O_CREAT);
        use Symbol qw(gensym);
        use Exporter ();

        # new default
        use Getopt::Long qw(GetOptions);
        use Fcntl        qw(O_RDONLY O_WRONLY O_EXCL O_CREAT);
        use Symbol       qw(gensym);
        use Exporter     ();

    - The parameter -kbb (--keep-break-before) now ignores a request to break
      before an opening token, such as '('.  Likewise, -kba (--keep-break-after)
      now ignores a request to break after a closing token, such as ')'. This
      change was made to avoid a rare instability discovered in random testing.

    - Previously, if a -dsc command was used to delete all side comments,
      then any special side comments for controlling non-indenting braces got
      deleted too. Now, these control side comments are retained when -dsc is
      set unless a -nnib (--nonon-indenting-braces) flag is also set to
      deactivate them.

    - This version runs about 10 percent faster on large files than the previous
      release due to optimizations made with the help of Devel::NYTProf.  Much
      of the gain came from faster processing of blank tokens and comments.

    - This version of perltidy was stress-tested for many cpu hours with
      random input parameters. No failures to converge, internal fault checks,
      undefined variable references or other irregularities were seen.
Source: README.txt, updated 2022-06-13