in reply to Re: debugger versus say in 5.14
in thread debugger versus say in 5.14

Patch works well, thanks!
perl -de 0 Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): 0 DB<1> say "Goodnight, Gracie" Goodnight, Gracie

Replies are listed 'Best First'.
Re^3: debugger versus say in 5.14
by jpl (Monk) on May 16, 2011 at 15:26 UTC
    Although I like your patch, and will probably keep it, it is a bit ham-handed. As you say in the patch

    The attached patch enables all the features available in the running perl.

    I can be more selective if I use

    perl -Mfeature=say -de 0
    to arm just the feature(s) I'm after. It would be nicer still if there were some way to have finer control of the lexical scope created by the debugger (I am forever getting burned by cutting and pasting my $var = "something"; into the debugger, which is effectively ignored for the same reason you mentioned). But at least there are ways to use new features inside the debugger.

    Update: My mistake. That appears to work only because I already have your patch installed. It doesn't work with 5.12.1 without the patch.