non-indenting braces. The default is equivalent to -nibp='#<<<'. The string
that you enter must begin with a # and should be in quotes as necessary to get
past the command shell of your system. This string is the leading text of a
-regex pattern that is constructed by appending pre-pending a '^' and appending
+regex pattern that is constructed by prepending a '^' and appending
a'\s', so you must also include backslashes for characters to be taken
literally rather than as patterns.
When the B<cuddled-else> style is used, the default treatment of one-line blocks
may interfere with the cuddled style. In this case, the default behavior may
-be changed with the flag B<--cuddled-break-option=n> described elsehwere.
+be changed with the flag B<--cuddled-break-option=n> described elsewhere.
When an existing one-line block is longer than the maximum line length, and
must therefore be broken into multiple lines, perltidy checks for and adds any
B<Neither of these> (B<--use-feature> not defined). This is the DEFAULT and
recommended setting. In this case perltidy will try to automatically handle
both the newer --use-feature 'class' syntax as well as some conflicting
-uses of some of these special words by exisiting modules.
+uses of some of these special words by existing modules.
=back
=item *
-Any parameter in the F<.perltidyrc> file can be overriden with a replacement
+Any parameter in the F<.perltidyrc> file can be overridden with a replacement
value on the command line. This is because the command line is processed
after the F<.perltidyrc> file.
a few symbols for special block types, as follows:
if elsif else for foreach ... any keyword introducing a block
- sub - any sub or anynomous sub
+ sub - any sub or anonymous sub
asub - any anonymous sub
* - any block except nameless blocks
+ - any nested inner block loop
within their scope. Calling them B<unused> is convenient but not really
accurate; this is a "gray area" for a program. There are many reasons for
having such variables. For example, they might occur in a list of values
-provided by another routine or data structure, and therefor must be listed,
+provided by another routine or data structure, and therefore must be listed,
even though they might not be referenced again. Or they might be defined for
possible future program development, clarity or debugging. B<But> sometimes
they can occur due to being orphaned by a coding change, due to a misspelling,
The default is not to do any of these checks, and it can also be indicated with
B<-wvt=0>.
-To restrict the check to a specfic set warnings, set the input B<string> to be
+To restrict the check to a specific set warnings, set the input B<string> to be
a space-separated or comma-separated list of the letters associated with the
types of variables to be checked. For example:
identifier identifier i
bareword, function bareword w
keyword keyword k
- quite, pattern quote q
+ quote, pattern quote q
here doc text here-doc-text h
here doc target here-doc-target hh
punctuation punctuation pu
my $flag = shift;
if ($flag) { goto ERROR_EXIT }
else { goto NORMAL_EXIT }
- croak "unexpectd return to Exit";
+ croak "unexpected return to Exit";
} ## end sub Exit
sub Die {
# arrived from standard input or from a string ref. For example
# 'perltidy <null.pl'. If we issue a warning and stop, as we would
# for a zero length file ('perltidy null.pl'), then we could cause
- # a call to the perltidy module to mis-behave as a filter. So we will
+ # a call to the perltidy module to misbehave as a filter. So we will
# process this as any other file in this case without any warning (c286).
if ( !length( ${$rinput_string} ) ) {
# %option_range - a hash giving the valid ranges of certain options
# Note: a few options are not documented in the man page and usage
- # message. This is because these are depricated, experimental or debug
+ # message. This is because these are deprecated, experimental or debug
# options and may or may not be retained in future versions:
# These undocumented flags are accepted but not used: