Perl Cheat Sheet Page 31

ADVERTISEMENT

Lists previous window.
-
Returns to the executed line.
.
FILE
Switches to
FILE
and starts listing it.
f
SUB
Lists the named subroutine.
l
S [ ! ]
Lists the names of all subroutines [not] matching the pattern.
PATTERN
PATTERN
Searches forwards for
PATTERN
.
/
/
Searches backwards for
.
?
PATTERN
?
PATTERN
b [
[
]]
LINE
CONDITION
Sets breakpoint at
, default is the current line.
LINE
[
]
b
SUB
CONDITION
Sets breakpoint at the named subroutine.
d [
LINE
]
Deletes breakpoint at the given line.
Deletes all breakpoints.
D
Lists lines that have breakpoints or actions.
L
a [
]
LINE
COMMAND
Sets an action for line.
Deletes all line actions.
A
Sets an action to be executed before every debugger prompt.
<
COMMAND
Sets an action to be executed after every debugger prompt.
>
COMMAND
V [
PACKAGE
[
PATTERN
] ]
Lists variables matching
in a package. Default package
PATTERN
is main .
X [
PATTERN
] Like ‘ V ’, but assumes the current package.
! [ [-]
NUMBER
]
Re-executes a command. Default is the previous command.
! [
] Re-executes the last command that started with
.
PATTERN
PATTERN
!! [
COMMAND
]
Runs
in a sub-process.
COMMAND
H [ -
] Displays the last -
commands.
NUMBER
NUMBER
Runs debugger command
through the current pager.
|
CMD
CMD
||
CMD
Same, temporarily
select
s DB::OUT as well.
Toggles trace mode.
t
EXPR
Traces through execution of
EXPR
.
t
EXPR
Evals
EXPR
in list context, dumps the result.
x
O [
OPT
[ =
VAL
] ]
Sets or queries values of debugger options.
= [
]
ALIAS VALUE
Sets alias, or lists current aliases.
R
Restarts the debugger.
Quits. You may also use your
character.
q
EOF
COMMAND
Executes
COMMAND
as a Perl statement.
31

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education