Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^7: [perldebugger] calling perldoc from within the debugger (REPL) (THX!)

by pemungkah (Priest)
on Sep 03, 2009 at 17:22 UTC ( [id://793251]=note: print w/replies, xml ) Need Help??


in reply to Re^6: [perldebugger] calling perldoc from within the debugger (REPL) (THX!)
in thread [perldebugger] calling perldoc from within the debugger

What you're seeing here is an 'x' of the print's return value, which is of course 1 since the print succeeded. We can expand the replacement eval with a crude check for the function being a print, in which case we leave $onetimeDump off.
sub smarter_eval { local $onetimeDump = 'dump' if $_[0] =~ /\Aprint\s*\(?/; old_eval(@_); }
  • Comment on Re^7: [perldebugger] calling perldoc from within the debugger (REPL) (THX!)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://793251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-25 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found