develooper Front page | perl.perl5.porters | Postings from July 2003

[patch] perldebug.pod clarification

=?iso-8859-1?Q?St=E9phane?= Payrard
July 21, 2003 12:31
[patch] perldebug.pod clarification
Message ID:
I was stung by the loss of context when I learned Perl
with the help of the debugger. Probably many other are.
Probably the English need improvment.

diff -c perldebug.pod 
*** perldebug.pod	2003-03-08 22:02:08.000000000 +0100
---	2003-07-21 20:01:04.000000000 +0200
*** 39,44 ****
--- 39,50 ----
  (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

 stef Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About