If the path contains spaces, it should be placed in quotes.
This parameter will be ignored if output is being directed to standard output,
-or if it is being specified explicitly with the B<-o=s> parameter.
+or if it is being specified explicitly with the B<-outfile=s> parameter.
=item B<-b>, B<--backup-and-modify-in-place>
A B<-b> flag will be ignored if input is from standard input or goes to
standard output, or if the B<-html> flag is set.
-In particular, if you want to use both the B<-b> flag and the B<-pbp>
-(--perl-best-practices) flag, then you must put a B<-nst> flag after the
-B<-pbp> flag because it contains a B<-st> flag as one of its components,
-which means that output will go to the standard output stream.
+In particular, if you want to use both the B<-b> flag and the
+B<--perl-best-practices> (B<-pbp>) flag, then you must put a
+B<-nostandard-output> (B<-nst>) flag after the B<-pbp> flag because it contains a
+B<--standard-output> flag as one of its components, which means that output
+will go to the standard output stream.
=item B<-bext>=ext, B<--backup-file-extension>=ext
To simplify testing and switching .perltidyrc files, this command may be
used to specify a configuration file which will override the default
-name of .perltidyrc. There must not be a space on either side of the
+name of F<.perltidyrc>. There must not be a space on either side of the
'=' sign. For example, the line
perltidy -pro=testcfg
from there. If the whitespace never exceeds this limit the formatting remains
unchanged.
-The combination of B<-vmll> and B<-wc=n> provides a solution to the problem of
-displaying arbitrarily deep data structures and code in a finite window,
-although B<-wc=n> may of course be used without B<-vmll>.
+The combination of B<--variable-maximum-line-length> and
+B<--whitespace-cycle=n> provides a solution to the problem of displaying
+arbitrarily deep data structures and code in a finite window, although B<--whitespace-cycle=n> may of course be used without B<--variable-maximum-line-length>.
The default is not to use this, which can also be indicated using B<-wc=0>.
Except for possibly introducing tab indentation characters, as outlined
below, perltidy does not introduce any tab characters into your file,
and it removes any tabs from the code (unless requested not to do so
-with B<-fws>). If you have any tabs in your comments, quotes, or
+with B<--freeze-whitespace>). If you have any tabs in your comments, quotes, or
here-documents, they will remain.
=over 4
This flag causes one leading tab character to be inserted for each level
of indentation. Certain other features are incompatible with this
option, and if these options are also given, then a warning message will
-be issued and this flag will be unset. One example is the B<-lp>
+be issued and this flag will be unset. One example is the B<--line-up-parentheses>
option. This flag is retained for backwards compatibility, but
-if you use tabs, the B<-et=n> flag is recommended. If both B<-t> and
-B<-et=n> are set, the B<-et=n> is used.
+if you use tabs, the B<--entab-leading-whitespace=n> flag is recommended. If both B<--tabs> and
+B<--entab-leading-whitespace=n> are set, then B<--entab-leading-whitespace=n> is used.
=item B<-dt=n>, B<--default-tabsize=n>
With this option perltidy is still free to modify the indenting (and
outdenting) of code and comments as it normally would. If you also want to
-prevent long comment lines from being outdented, you can add either B<-noll> or
-B<-l=0>.
+prevent long comment lines from being outdented, you can add either B<--nooutdent-long-lines> (B<-noll>) or B<--maximum-line-length=0> (B<l=0>).
Setting this flag will prevent perltidy from doing any special operations on
closing side comments. You may still delete all side comments however when
this flag is in effect.
-
=item B<-enc=s>, B<--character-encoding=s>
This flag indicates if the input data stream uses a character encoding.
The value given to B<-ci> is also used by some commands when a small
space is required. Examples are commands for outdenting labels,
-B<-ola>, and control keywords, B<-okw>.
+B<--outdent-labels> (B<-ola>), and control keywords, B<--outdent-keywords> (B<-okw>).
When default values are not used, it is recommended that either
(1) the value B<n> given with B<-ci=n> be no more than about one-half of the
number of spaces assigned to a full indentation level on the B<-i=n> command, or
-(2) the flag B<-extended-continuation-indentation> is used (see next section).
+(2) the flag B<--extended-continuation-indentation> is used (see next section).
=item B<-xci>, B<--extended-continuation-indentation>
. "' found" );
The second and third lines are one level deep in a container, and are also
-statement continuations, so they get indented by the sum of the B<-i>
-value and the B<-ci> value. If this flag is set, the indentation is reduced by
+statement continuations, so they get indented by the sum of the full indentation B<-i>
+value and the continuation indentation B<-ci> value. If this flag is set, the indentation is reduced by
B<-ci> spaces, giving
# perltidy -mci
indentation scheme used to create the code snippet is the same as is being used
for the current perltidy process. This is the only sensible guess that can be
made. It should be correct if this is true, but otherwise it probably won't.
-For example, if the input script was written with -i=2 and the current perltidy
-flags have -i=4, the wrong initial indentation will be guessed for a code
+For example, if the input script was written with B<-i=2> and the current perltidy
+flags have B<-i=4>, the wrong initial indentation will be guessed for a code
snippet which has non-zero initial indentation. Likewise, if an entabbing
scheme is used in the input script and not in the current process then the
guessed indentation will be wrong.
For both the B<-lp> and B<-xlp> flags, any parameter which significantly
restricts the ability of perltidy to choose newlines will conflict with these
-flags and will cause them to be deactivated. These include B<-io>, B<-fnl>,
-B<-nanl>, and B<-ndnl>.
+flags and will cause them to be deactivated. These include B<--indent-only>, B<--freeze-newlines>,
+B<-noadd-newlines>, and B<-nodelete-old-newlines>.
=item *
The set of containers to which the B<-lp> style applies can be reduced by
either one of these two flags:
-Use B<-lpil=s> to specify the containers to which B<-lp> applies, or
+Use B<--line-up-parentheses-inclusion-list=s> (B<-lpil=s>) to specify the containers to which B<-lp> applies, or
-use B<-lpxl=s> to specify the containers to which B<-lp> does NOT apply.
+use B<--line-up-parentheses-exclusion-list=s> (B<-lpxl=s>) to specify the containers to which B<-lp> does NOT apply.
Only one of these two flags may be used. Both flags can achieve the same
result, but the B<-lpil=s> flag is much easier to describe and use and is
An optional numeric code may follow any of the container types to further refine the selection based
on container contents. The numeric codes are:
- '0' or blank: no check on contents is made
- '1' exclude B<-lp> unless the contents is a simple list without sublists
- '2' exclude B<-lp> unless the contents is a simple list without sublists, without
+ '0' or blank: no restriction is placed on container contents
+ '1' the container contents must be a simple list without sublists
+ '2' the container contents must be a simple list without sublists, without
code blocks, and without ternary operators
For example,
-lpil = 'f(2'
-means only apply -lp to function call lists which do not contain any sublists,
-code blocks or ternary expressions.
+means only apply -lp to function calls with simple lists (not containing any sublists,
+code blocks or ternary expressions).
=item B<-cti=n>, B<--closing-token-indentation>
); or ]; or };
-cti = 3 one extra indentation level always
-The flags B<-cti=1> and B<-cti=2> work well with the B<-lp> flag (previous
-section).
+The flags B<-cti=1> and B<-cti=2> work well with the B<--line-up-parentheses>
+(B<-lp>) flag (previous section).
# perltidy -lp -cti=1
@month_of_year = (
When B<-olq> is set, lines which is a quoted string longer than the
value B<maximum-line-length> will have their indentation removed to make
them more readable. This is the default. To prevent such out-denting,
-use B<-nolq> or B<--nooutdent-long-lines>.
+use B<-nolq>.
=item B<-oll>, B<--outdent-long-lines>
-This command is equivalent to B<--outdent-long-quotes> and
+This command is equivalent to the combination B<--outdent-long-quotes> and
B<--outdent-long-comments>, and it is included for compatibility with previous
versions of perltidy. The negation of this also works, B<-noll> or
B<--nooutdent-long-lines>, and is equivalent to setting B<-nolq> and B<-nolc>.
=item B<Outdenting Labels:> B<-ola>, B<--outdent-labels>
-This command will cause labels to be outdented by 2 spaces (or whatever B<-ci>
-has been set to), if possible. This is the default. For example:
+This command will cause labels to be outdented by the number of spaces defined
+by B<--continuation-indentation=n>, if possible.
+This is the default. For example:
my $i;
LOOP: while ( $i = <FOTOS> ) {
fixit($i);
}
-Use B<-nola> to not outdent labels. To control line breaks after labels see L<"-bal=n, --break-after-labels=n">.
+Use B<-nola> to prevent this. To control line breaks after labels see L<"-bal=n, --break-after-labels=n">.
=item B<Outdenting Keywords>
=item B<-okw>, B<--outdent-keywords>
The command B<-okw> will cause certain leading control keywords to
-be outdented by 2 spaces (or whatever B<-ci> has been set to), if
+be outdented by the number of spaces defined by
+B<--continuation-indentation=n>spaces, if
possible. By default, these keywords are C<redo>, C<next>, C<last>,
C<goto>, and C<return>. The intention is to make these control keywords
easier to see. To change this list of keywords being outdented, see
fixit($i);
}
-The default is not to do this.
+Notice that the keyword B<next> has been outdented. The default is not to do
+this.
=item B<Specifying Outdented Keywords:> B<-okwl=string>, B<--outdent-keyword-list=string>
command is still required.
For example, the commands C<-okwl="next last redo goto" -okw> will cause
-those four keywords to be outdented. It is probably simplest to place
-any B<-okwl> command in a F<.perltidyrc> file.
+those four keywords to be outdented.
=back
this parameter applies is controlled by a companion control parameter,
described in the next section.
-Note that if the two flags B<-bbt=n> and B<-bt=n> have the same value
-B<n> then there would be no reason to set this flag.
+Note that if the two flags B<--block-brace-tightness=n> and
+B<--brace-tightness=n> have the same value B<n> then there would be no reason
+to set this flag.
=item B<-xbtl=s>, B<--extended-block-tightness-list=s>
-The previous parameter B<-xbt> can be made to apply to curly braces preceded
-by any of the keywords
+The previous parameter B<--extended-block-tightness> (B<-xbt>) can be made to
+apply to curly braces preceded by any of the keywords
print printf exec system say
$ @ % & * $#
The parameter string B<s> may contain a selection of these keywords and symbols
-to indicate the brace types to which B<-xbt> applies. For convenience, all of
+to indicate the brace types to which B<--extended-block-tightness> applies.
+For convenience, all of
the keywords can be selected with 'k', and all of the special symbols
can be selected with 't'. The default is equivalent to B<-xbtl='k'>, which
selects all of the keywords.
-xbtl="kt" # selects all keywords and symbols
-xbtl="print say" # selects just keywords B<print> and B<say>:
-Here are some formatting examples using the default values of B<-bt=n> and
-B<-bbt=n>. Note that in these examples B<$ref> is in block braces but B<$key>
-is not.
+Here are some formatting examples using the default values of
+B<--brace-tightness=n> and B<--block-brace-tightness=n>. Note that in these
+examples B<$ref> is in block braces but B<$key> is not.
# default formatting
print {*STDERR} $message;
Setting this option allows perltidy to add certain whitespace to improve
code readability. This is the default. If you do not want any
whitespace added, but are willing to have some whitespace deleted, use
-B<-naws>. (Use B<-fws> to leave whitespace completely unchanged).
+B<-naws>. (Use B<--freeze-whitespace> (B<-fws>) to leave whitespace completely unchanged).
=item B<-dws>, B<--delete-old-whitespace>
These can be changed with the parameter B<-kpitl=s> described in the next section.
-=item B<-kpitl=string> or B<--keyword-paren-inner-tightness=string>
+=item B<-kpitl=string> or B<--keyword-paren-inner-tightness-list=string>
-This command can be used to change the keywords to which the the B<-kpit=n>
-command applies. The parameter B<string> is a required list either keywords or
+This command can be used to change the keywords to which the previous
+parameter, B<-kpit=n>,
+applies. The parameter B<string> is a required list either keywords or
functions, which should be placed in quotes if there are more than one. By
itself, this parameter does not cause any change in spacing, so the B<-kpit=n>
command is still required.
=item B<-osbc>, B<--outdent-static-block-comments>
-The command B<-osbc> will cause static block comments to be outdented by 2
-spaces (or whatever B<-ci=n> has been set to), if possible.
+The command B<-osbc> will cause static block comments to be outdented by
+the number of B<--continuation-spaces=n>, if possible.
=back
#>>V
+(The last character V is like a < or > rotated 90 degrees).
Additional text may appear on the special comment lines provided that it is
separated from the marker by at least one space to highlight the sign, as in
the above examples.
this section and sections
L<"Controlling List Formatting">,
L<"Retaining or Ignoring Existing Line Breaks">.
-You may want to use B<-noll> with this.
+You may want to use B<-nooutdent-long-lines> with this.
Note: If you also want to keep your blank lines exactly
-as they are, you can use the B<-fbl> flag which is described
+as they are, you can use the B<--freeze-blank-lines> flag which is described
in the section L<"Blank Line Control">.
=back
this "cuddled" style are B<elsif>, B<continue>, B<catch>, B<finally>.
Other block types can be formatted by specifying their names on a
-separate parameter B<-cbl>, described in a later section.
+separate parameter B<--cuddled-block-list>, described in a later section.
Cuddling between a pair of code blocks requires that the closing brace of the
first block start a new line. If this block is entirely on one line in the
input file, it is necessary to decide if it should be broken to allow cuddling.
-This decision is controlled by the flag B<-cbo=n> discussed below. The default
+This decision is controlled by the flag B<--cuddled-break-options=n>
+(B<-cbo=n>) discussed below. The default
and recommended value of B<-cbo=1> bases this decision on the first block in
the chain. If it spans multiple lines then cuddling is made and continues
along the chain, regardless of the sizes of subsequent blocks. Otherwise, short
lines remain intact.
-So for example, the B<-ce> flag would not have any effect if the above snippet
-is rewritten as
+So for example, the B<--cuddled-else> flag would not have any effect if the
+above snippet is rewritten as
if ($task) { yyy() }
else { zzz() }
=item B<-cb>, B<--cuddled-blocks>
-This flag is equivalent to B<-ce>.
+This flag is equivalent to B<--cuddled-else> (B<-ce>).
=item B<-cbl>, B<--cuddled-block-list>
As a diagnostic check, the flag B<--dump-cuddled-block-list> or B<-dcbl> can be
used to view the hash of values that are generated by this flag.
-Finally, note that the B<-cbl> flag by itself merely specifies which blocks are formatted
-with the cuddled format. It has no effect unless this formatting style is activated with
-B<-ce>.
+Finally, note that the B<--cuddled-block-list> parameter by itself merely
+specifies which blocks are formatted with the cuddled format. It has no effect
+unless this formatting style is activated with B<--cuddled-else>.
=item B<-cblx>, B<--cuddled-block-list-exclusive>
-When cuddled else formatting is selected with B<-ce>, setting this flag causes
-perltidy to ignore its built-in defaults and rely exclusively on the block types
-specified on the B<-cbl> flag described in the previous section. For example,
-to avoid using cuddled B<catch> and B<finally>, which are among the defaults, the
-following set of parameters could be used:
+When cuddled else formatting is selected with B<-cuddled-else>, setting this
+flag causes perltidy to ignore its built-in defaults and rely exclusively on
+the block types specified on the B<--cuddled-block-list> flag described in the
+previous section. For example, to avoid using cuddled B<catch> and B<finally>,
+which are among the defaults, the following set of parameters could be used:
perltidy -ce -cbl='else elsif continue' -cblx
-
=item B<-cbo=n>, B<--cuddled-break-option=n>
Cuddled formatting is only possible between a pair of code blocks if the
=item B<-bli>, B<--brace-left-and-indent>
The flag B<-bli> is similar to the B<-bl> flag but in addition it causes one
-unit of continuation indentation ( see B<-ci> ) to be placed before
-an opening and closing block braces.
+unit of continuation indentation ( see B<--continuation-indentation> ) to be
+placed before an opening and closing block braces.
-For example, perltidy -bli gives
+For example
+ # perltidy -bli
if ( $input_file eq '-' )
{
important_function();
By default, this extra indentation occurs for block types:
B<if>, B<elsif>, B<else>, B<unless>, B<while>, B<for>, B<foreach>, B<do>, and
-also B<named subs> and blocks preceded by a B<label>. The next item shows how to
-change this.
+also B<named subs> and blocks preceded by a B<label>. The next item shows how
+to change this.
-B<Note>: The B<-bli> flag is similar to the B<-bl> flag, with the difference being
+B<Note>: The B<-bli> flag is similar to the B<-bl> flag, with the difference
+being
that braces get indented. But these two flags are implemented independently,
and have different default settings for historical reasons. If desired, a
mixture of effects can be achieved if desired by turning them both on with
big_waste_of_time();
}
-A conflict occurs if both B<-bl> and B<-bar> are specified.
+A conflict occurs if both B<--opening-brace-on_new-line> (B<-bl>) and B<-bar>
+are specified.
=item B<-cpb>, B<--cuddled-paren-brace>
The inner sandwich layer is required to be at least one line thick. If this
cannot be achieved, welding does not occur. This constraint can cause
formatting to take a couple of iterations to stabilize when it is first applied
-to a script. The B<-conv> flag can be used to insure that the final format is
-achieved in a single run.
+to a script. The B<--converge> flag can be used to insure that the final format
+is achieved in a single run.
Here is an example illustrating a welded container within a welded containers:
) );
The welded closing tokens are by default on a separate line but this can be
-modified with the B<-vtc=n> flag (described in the next section). For example,
+modified with the B<--vertical-tightness-closing=n> (B<-vtc=n>) flag (described
+in the next section). For example,
the same example adding B<-vtc=2> is
# perltidy -wn -vtc=2
=item B<-wfc>, B<--weld-fat-comma >
-When the B<-wfc> flag is set, along with B<-wn>, perltidy is allowed to weld
-an opening paren to an inner opening container when they are separated by a hash key and fat comma (=>). for example
+When the B<-wfc> flag is set, along with B<-wn> (B<--weld-nested-containers>),
+perltidy is
+allowed to weld an opening paren to an inner opening container when they are
+separated by a hash key and fat comma (=>). for example
# perltidy -wn -wfc
elf->call_method( method_name_foo => {
=item *
-You must also use the B<-lp> flag when you use the B<-vt> flag; the
-reason is explained below.
+You must also use the B<-lp> (B<--line-up-parentheses>) flag when you use the
+B<-vt> flag; the reason is explained below.
=item *
Finally, please note that these vertical tightness flags are merely
hints to the formatter, and it cannot always follow them. Things which
make it difficult or impossible include comments, blank lines, blocks of
-code within a list, and possibly the lack of the B<-lp> parameter.
+code within a list, and possibly the lack of the B<--line-up-parentheses>
+parameter.
Also, these flags may be ignored for very small lists (2 or 3 lines in
length).
because perltidy implements the B<-vt> parameter by first formatting as
if B<-vt=0>, and then simply overwriting one output line on top of the
next, if possible, to achieve the desired vertical tightness. The
-B<-lp> indentation style has been designed to allow this vertical
+B<-lp> (B<--line-up-parentheses>) indentation style has been designed to allow
+this vertical
collapse to occur, which is why it is required for the B<-vt> parameter.
The B<-vt=n> and B<-vtc=n> parameters apply to each type of container
There is no vertical tightness control for closing block braces; with
one exception they will be placed on separate lines.
The exception is that a cascade of closing block braces may
-be stacked on a single line. See B<-scbb>.
+be stacked on a single line. See B<--stack-closing-block-brace>.
=item B<-sot>, B<--stack-opening-tokens> and related flags
always_quote => 1,
} );
-The B<-sct> flag is somewhat similar to the B<-vtc> flags, and in some
+The B<-sct> flag is somewhat similar to the B<-vtc>
+(B<--vertical-tightness-closing> flags, and in some
cases it can give a similar result. The difference is that the B<-vtc>
flags try to avoid lines with leading opening tokens by "hiding" them at
the end of a previous line, whereas the B<-sct> flag merely tries to
To simplify input even further for the case in which both opening and closing
non-block containers are stacked, the flag B<-sac> or B<--stack-all-containers>
-is an abbreviation for B<-sot -sct>.
+is an abbreviation for B<--stack-opening-tokens --stack-closing-tokens>.
Please note that if both opening and closing tokens are to be stacked, then the
newer flag B<-weld-nested-containers> may be preferable because it insures that
stacking is always done symmetrically. It also removes an extra level of
unnecessary indentation within welded containers. It is able to do this
-because it works on formatting globally rather than locally, as the B<-sot> and
-B<-sct> flags do.
+because it works on formatting globally rather than locally, as the B<--stack-opening-tokens> and B<--stack-closing-tokens> flags do.
=back
snippet of code and look at the .DEBUG file to see the tokenization. However,
for a few token types there may be conflicts with hardwired logic which cause
unexpected results. One example is curly braces, which should be controlled
-with the parameter B<bl> provided for that purpose.
+with the parameter B<--opening-brace-on-new-line> provided for that purpose.
B<WARNING> Be sure to put these tokens in quotes to avoid having them
misinterpreted by your command shell.
and the B<-bbao> flag sets the default to break before all of these operators.
These can be used to define an initial break preference which can be fine-tuned
-with the B<-wba> and B<-wbb> flags. For example, to break before all operators
-except an B<=> one could use --bbao -wba='=' rather than listing every
-single perl operator except B<=> on a -wbb flag.
+with the B<--want-break-after> and B<--want-break-before> flags. For example,
+to break before all operators except an B<=> one could use C<--bbao -wba='='>
+rather than listing every single perl operator except B<=> on a B<-wbb> flag.
=over 4
# perltidy (default)
my @list = ( 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, );
-This formatting loses the nice structure. If we place a side comment anywhere
-between the opening and closing parens, the original line break points are
-retained. For example,
+This formatting loses the nice structure. The original line breaks can be
+retained by adding comment or a blank line somewhere between the
+two parens. For example,
my @list = (
1, # a side comment forces the original line breakpoints to be kept
1, 4, 6, 4, 1,
);
-The side comment can be a single hash symbol without any text.
We could achieve the same result with a blank line or full comment
anywhere between the opening and closing parens. Vertical alignment
-of the list items will still occur if possible.
+of the list items will still occur if possible. The blank line method
+is shown here:
+
+ my @list = (
+
+ 1,
+ 1, 1,
+ 1, 2, 1,
+ 1, 3, 3, 1,
+ 1, 4, 6, 4, 1,
+ );
For another possibility see
the -fs flag in L<"Skipping Selected Sections of Code">.
exceeds B<n>, then it will be reduced to B<n>. This parameter might be used on
a small section of code to force a list to have a particular number of fields
per line, and then either the B<-boc> flag could be used to retain this
-formatting, or a single comment could be introduced somewhere to freeze the
-formatting in future applications of perltidy. For example
+formatting, or a blank line or comment could be introduced somewhere to freeze
+the formatting in future applications of perltidy. For example
# perltidy -mft=2
@month_of_year = (
=item B<-bok>, B<--break-at-old-keyword-breakpoints>
By default, perltidy will retain a breakpoint before keywords which may
-return lists, such as C<sort> and <map>. This allows chains of these
+return lists, such as C<sort> and C<map>. This allows chains of these
operators to be displayed one per line. Use B<-nbok> to prevent
retaining these breakpoints.
perltidy retains single blank lines, so the blank lines remain.
We can easily fix this by telling perltidy to ignore old blank lines by
-including the added parameter B<-kbl=0> and rerunning. Then the unwanted blank
-lines will be gone. However, this will cause all old blank lines to be
-ignored, perhaps even some that were added by hand to improve formatting. So
-please be cautious when using these parameters.
+including the added parameter B<--keep-old-blank-lines=0> and rerunning. Then
+the unwanted blank lines will be gone. However, this will cause all old blank
+lines to be ignored, perhaps even some that were added by hand to improve
+formatting. So please be cautious when using these parameters.
=item B<-mbl=n> B<--maximum-consecutive-blank-lines=n>
This parameter specifies the maximum number of consecutive blank lines which
will be output within code sections of a script. The default is n=1. If the
input file has more than n consecutive blank lines, the number will be reduced
-to n except as noted above for the B<-blbp> and B<-blbs> parameters. If B<n=0>
+to B<n> except as noted above for the B<--blank-lines-before-subs> and B<--blank-lines-before-subs> parameters. If B<n=0>
then no blank lines will be output (unless all old blank lines are retained
-with the B<-kbl=2> flag of the next section).
+with the B<--keep-old-blank-lines=2> flag of the next section).
This flag obviously does not apply to pod sections,
here-documents, and quotes.
=item B<-sob>, B<--swallow-optional-blank-lines>
-This is equivalent to B<kbl=0> and is included for compatibility with
-previous versions.
+This is equivalent to B<--keep-old-blank-lines=0> and is included for compatibility with previous versions.
=item B<-nsob>, B<--noswallow-optional-blank-lines>
-This is equivalent to B<kbl=1> and is included for compatibility with
-previous versions.
+This is equivalent to B<--keep-old-blank-lines=1> and is included for
+compatibility with previous versions.
=back
-lp -bl -noll -pt=2 -bt=2 -sbt=2 -icp
-To use this style with B<-xlp> instead of B<-lp> use B<-gnu -xlp>.
+To use this style with B<-xlp> (B<--extended-line-up-parentheses>) instead of B<-lp> (B<--line-up-parentheses>) use B<-gnu -xlp>.
=item B<-pbp>, B<--perl-best-practices>
-wbb="% + - * / x != == >= <= =~ !~ < > | & =
**= += *= &= <<= &&= -= /= |= >>= ||= //= .= %= ^= x="
-Please note that this parameter set includes -st and -se flags, which make
-perltidy act as a filter on one file only. These can be overridden by placing
-B<-nst> and/or B<-nse> after the -pbp parameter.
+Please note that this parameter set includes B<-st> (B<--standard-output>) and
+B<-se> (B<--standard-error-output>) flags, which make perltidy act as a filter
+on one file only. These can be overridden by placing B<-nst> and/or B<-nse>
+after the -pbp parameter.
-Also note that the value of continuation indentation, -ci=4, is equal to the
-value of the full indentation, -i=4. It is recommended that the either (1) the
-parameter B<-ci=2> be used instead, or (2) the flag B<-xci> be set. This will
-help show structure, particularly when there are ternary statements. The
+Also note that the value of continuation indentation, B<-ci=4>, is equal to the
+value of the full indentation, B<-i=4>. It is recommended that the either (1)
+the parameter B<-ci=2> be used instead, or (2) the flag B<-xci> be set. This
+will help show structure, particularly when there are ternary statements. The
following snippet illustrates these options.
# perltidy -pbp
aws b baa baao bar bbao bbb bbc bbs bl
bli boa boc bok bol bom bos bot cblx ce
conv cpb cs csc cscb cscw dac dbc dbs dcbl
- dcsc ddf dia dior dln dma dmcp dnl dop dp
- dpro drc dsc dsm dsn dtc dtt duv dwic dwls
- dwrs dws eos f fpva frm fs fso gcs hbc
- hbcm hbco hbh hbhh hbi hbj hbk hbm hbn hbp
- hbpd hbpu hbq hbs hbsc hbv hbw hent hic hicm
- hico hih hihh hii hij hik him hin hip hipd
- hipu hiq his hisc hiv hiw hsc html ibc icb
- icp iob ipc isbc iscl kgb kgbd kgbi kis lal
- log lop lp lsl mci mem nib ohbr okw ola
- olc oll olq opr opt osbc osbr otr ple pod
- pvl q sac sbc sbl scbb schb scp scsb sct
- se sfp sfs skp sob sobb sohb sop sosb sot
- ssc st sts t tac tbc toc tp tqw trp
- ts tsc tso vbc vc viu vmll vsc vsn vwe
- w wfc wia wma wme wn x xbt xci xlp
- xs
+ dcsc ddf dia dior dln dma dmcp dmr dnl dop
+ dp dpro drc dsc dsm dsn dtc dtt duv dwic
+ dwls dwrs dws eos f fpva frm fs fso gcs
+ hbc hbcm hbco hbh hbhh hbi hbj hbk hbm hbn
+ hbp hbpd hbpu hbq hbs hbsc hbv hbw hent hic
+ hicm hico hih hihh hii hij hik him hin hip
+ hipd hipu hiq his hisc hiv hiw hsc html ibc
+ icb icp iob ipc isbc iscl kgb kgbd kgbi kis
+ lal log lop lp lsl mci mem nib ohbr okw
+ ola olc oll olq opr opt osbc osbr otr ple
+ pod pvl q sac sbc sbl scbb schb scp scsb
+ sct se sfp sfs skp sob sobb sohb sop sosb
+ sot ssc st sts t tac tbc toc tp tqw
+ trp ts tsc tso vbc vc viu vmll vsc vsn
+ vwe w wfc wia wma wme wmr wn x xbt
+ xci xlp xs
Equivalently, the prefix 'no' or 'no-' on the corresponding long names may be
used.