in reply to Re: [perldebugger] calling perldoc from within the debugger
in thread [perldebugger] calling perldoc from within the debugger
And I just figured out how to preset aliases at startup.
There is a ini-file called .perldb sourced!
lanx@nc10-ubuntu:~$ cat .perldb sub afterinit { $DB::alias{ALIAS}='s/ALIAS/command/' }
so with your approach I may write
sub afterinit { $DB::doccmd='perldoc'; $DB::alias{doc}='s/doc/perldoc/'; }
so now I can type:
DB<2> doc -f print
and get better results...
... now I just have to figure out the best way to call a shellscript called doc, such that I have the same syntax from shellprompt (and than I can enrich the features of perldoc for my needs 8)
lanx@nc10-ubuntu:~$ doc -k '=='
Cheers Rolf
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: [perldebugger] calling perldoc from within the debugger (inifile)
by pemungkah (Priest) on Aug 07, 2009 at 15:41 UTC | |
by LanX (Saint) on Aug 08, 2009 at 00:54 UTC | |
by pemungkah (Priest) on Sep 02, 2009 at 00:01 UTC | |
by LanX (Saint) on Sep 02, 2009 at 23:02 UTC | |
by pemungkah (Priest) on Sep 03, 2009 at 17:22 UTC | |
by LanX (Saint) on Feb 02, 2012 at 00:17 UTC | |
by pemungkah (Priest) on Feb 12, 2012 at 21:38 UTC |