summaryrefslogtreecommitdiff
path: root/pod/perldebug.pod
diff options
context:
space:
mode:
authorStéphane Payrard <stef@mongueurs.net>2003-07-21 23:36:59 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-24 13:12:08 +0000
commitea5ec3060d131488dc0c12046e95afc4ec64909a (patch)
tree9aaa15cdef16aa138398bf2f0c5efae0dc346c91 /pod/perldebug.pod
parent1d296f1cbe6353bca53c99095d0fa4c3d9dcc0fb (diff)
downloadperl-ea5ec3060d131488dc0c12046e95afc4ec64909a.tar.gz
[patch] perldebug.pod clarification
Message-ID: <20030721193659.GC2722@stefp.dyndns.org> p4raw-id: //depot/perl@20202
Diffstat (limited to 'pod/perldebug.pod')
-rw-r--r--pod/perldebug.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perldebug.pod b/pod/perldebug.pod
index bde6701c41..ee9fa97d1c 100644
--- a/pod/perldebug.pod
+++ b/pod/perldebug.pod
@@ -39,6 +39,12 @@ Any command not recognized by the debugger is directly executed
(C<eval>'d) as Perl code in the current package. (The debugger
uses the DB package for keeping its own state information.)
+Note that the said C<eval> is bound by an implicit scope. As a
+result any newly introduced lexical variable or any modified
+capture buffer content is lost after the eval. The debugger is a
+nice environment to learn Perl, but if you interactively experiment using
+material which should be in the same scope, stuff it in one line.
+
For any text entered at the debugger prompt, leading and trailing whitespace
is first stripped before further processing. If a debugger command
coincides with some function in your own program, merely precede the