On Fri, 01 Feb 2008 08:54:24 -0800, Tom Phoenix wrote: > If you're trying to access a lexical variable, though, you'll need to stop > the debugger somewhere within the scope of that lexical in order to access > it by name. That's easy to do with a breakpoint.
ObPedantic: You can get at higher scoped lexicals with the 'y' command if you have the PadWalker module installed: % perl -d { my $upper = 42; foo(); } sub foo { print "Stop here\n"; } ^D main::(-:2): my $upper = 42; DB<1> c 7 main::foo(-:7): print "Stop here"; DB<2> x $upper 0 undef DB<3> y 1 upper $upper = 42 DB<4> h y y [n [Vars]] List lexicals in higher scope <n>. Vars same as V. That's why I added it :-) -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/