Yup, and perldoc perldebug mentions this fact.
Note that the said "eval" is bound by an implicit scope. As a r +esult any newly introduced lexical variable or any modified capture b +uffer content is lost after the eval. The debugger is a nice environm +ent to learn Perl, but if you interactively experiment using material +which should be in the same scope, stuff it in one line.
In reply to Re: Strange behavior of "my" in "perl -d" and "perl -de"
by Fletch
in thread Strange behavior of "my" in "perl -d" and "perl -de"
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |