perl-indent-command

perl-indent-command is an interactive compiled Lisp function in `perl-mode.el'.


(perl-indent-command &optional ARG)

This function is obsolete since 24.4;
use `indent-according-to-mode' instead.

Indent Perl code in the active region or current line.
In Transient Mark mode, when the region is active, reindent the region.
Otherwise, with a prefix argument, reindent the current line
unconditionally.

Otherwise, if `perl-tab-always-indent' is nil and point is not in
the indentation area at the beginning of the line, insert a tab.

Otherwise, indent the current line. If point was within the
indentation area, it is moved to the end of the indentation area.
If the line was already indented properly and point was not
within the indentation area, and if `perl-tab-to-comment' is
non-nil (the default), then do the first possible action from the
following list:

1) delete an empty comment
2) move forward to start of comment, indenting if necessary
3) move forward to end of line
4) create an empty comment
5) move backward to start of comment, indenting if necessary.