## 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 existing
+ 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
+ -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 }
+ foreach (@list) { if ($_ eq $asked_for) { last } ++$found }
- The default behavior (-olbn=0) is to break it into multiple lines:
+ 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;
- }
+ foreach (@list) {
+ if ( $_ eq $asked_for ) { last }
+ ++$found;
+ }
- To keep nested one-line blocks like this on a single line you can add the parameter -olbn=1.
+ 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.
=head1 INSTALLATION
-The perltidy binary uses the Perl::Tidy module and is installed when that module is installed. Module installation is system-dependent. On some systems, the command 'cpanm Perl::Tidy' will work.
+The perltidy binary uses the Perl::Tidy module and is installed when that module is installed. The module name is case-sensitive. For example, the basic command for installing with cpanm is 'cpanm Perl::Tidy'.
=head1 VERSION
<h2>2020 01 10</h2>
<pre><code>- This release adds a flag to control the feature RT#130394 (allow short nested blocks)
- introduced in the previous release. Unfortunately that feature breaks existing
+ 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
+ -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 }
+ foreach (@list) { if ($_ eq $asked_for) { last } ++$found }
- The default behavior (-olbn=0) is to break it into multiple lines:
+ 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;
- }
+ foreach (@list) {
+ if ( $_ eq $asked_for ) { last }
+ ++$found;
+ }
- To keep nested one-line blocks like this on a single line you can add the parameter -olbn=1.
+ 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.
<h1 id="INSTALLATION">INSTALLATION</h1>
-<p>On many systems, the command 'cpanm Perl::Tidy' will install both the module Perl::Tidy and a binary perltidy.</p>
+<p>The module 'Perl::Tidy' comes with a binary 'perltidy' which is installed when the module is installed. The module name is case-sensitive. For example, the basic command for installing with cpanm is 'cpanm Perl::Tidy'.</p>
<h1 id="VERSION">VERSION</h1>
<h1 id="INSTALLATION">INSTALLATION</h1>
-<p>The perltidy binary uses the Perl::Tidy module and is installed when that module is installed. Module installation is system-dependent. On some systems, the command 'cpanm Perl::Tidy' will work.</p>
+<p>The perltidy binary uses the Perl::Tidy module and is installed when that module is installed. The module name is case-sensitive. For example, the basic command for installing with cpanm is 'cpanm Perl::Tidy'.</p>
<h1 id="VERSION">VERSION</h1>
=head1 INSTALLATION
-On many systems, the command 'cpanm Perl::Tidy' will install both the module Perl::Tidy and a binary perltidy.
-
+The module 'Perl::Tidy' comes with a binary 'perltidy' which is installed when the module is installed. The module name is case-sensitive. For example, the basic command for installing with cpanm is 'cpanm Perl::Tidy'.
=head1 VERSION
- compare results of the current version with previous version
- review tickets at sourceforge (hardly used now, but possible)
- review/update the ChangeLog.pod file
+- be sure RPerl still works
- Review code, especially any ## commented out sections and "FIXME's"
- run perlver on all modules to check minimum version; should be 5.8.0
- The first line in Tidy.pm has the required version of Perl