Parses and beautifies perl source

Edit Package perl-Perl-Tidy
https://metacpan.org/dist/Perl-Tidy

This module makes the functionality of the perltidy utility available to
perl scripts. Any or all of the input parameters may be omitted, in which
case the @ARGV array will be used to provide input parameters as described
in the perltidy(1) man page.

Refresh
Refresh
Source Files
Filename Size Changed
Perl-Tidy-20200110.tar.gz 0000611243 597 KB
cpanspec.yml 0000000541 541 Bytes
perl-Perl-Tidy.changes 0000032151 31.4 KB
perl-Perl-Tidy.spec 0000002391 2.33 KB
Revision 48 (latest revision is 87)
Lars Vogdt's avatar Lars Vogdt (lrupp) accepted request 762631 from Tina Müller's avatar Tina Müller (tinita) (revision 48)
- updated to 20200110
   see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md
  ## 2020 01 10
  
      - This release adds a flag to control the feature RT#130394 (allow short nested blocks)
        introduced in the previous release.  Unfortunately that feature breaks 
        RPerl installations, so a control flag has been introduced and that feature is now
        off by default.  The flag is:
  
        --one-line-block-nesting=n, or -olbn=n, where n is an integer as follows: 
  
        -olbn=0 break nested one-line blocks into multiple lines [new DEFAULT]
        -olbn=1 stable; keep existing nested-one line blocks intact [previous DEFAULT]
  
        For example, consider this input line:
  
          foreach (@list) { if ($_ eq $asked_for) { last } ++$found }
  
        The new default behavior (-olbn=0), and behavior prior to version 20191203, is to break it into multiple lines:
  
          foreach (@list) {
              if ( $_ eq $asked_for ) { last }
              ++$found;
          }
  
        To keep nested one-line blocks such as this on a single line you can add the parameter -olbn=1.
  
      - Fixed issue RT#131288: parse error for un-prototyped constant function without parenthesized
        call parameters followed by ternary.
  
      - Fixed issue RT#131360, installation documentation.  Added a note that the binary 
        'perltidy' comes with the Perl::Tidy module. They can both normally be installed with 
        'cpanm Perl::Tidy'
Comments 0
openSUSE Build Service is sponsored by