| [reply] |
Perhaps if you showed us an example of the code you're typing at the command line, we'd have a better idea of what you're trying to do. Without that, the question is too vague to get any useful feedback.
Are you talking about being able to re-execute a previous command with the ability to edit a recalled command line before running it again? Some versions of the "MS-DOS Prompt" shell support this (more or less), but if you get a Win32 port of the unix "bash" shell, you'll find that its command-line history/editing features are much better (along with a lot of other features being much better as well). | [reply] |
I know that probably the last thing you want is another thing to learn but, this is the kind of thing a good programmer's editor can do for you.
Alternately you can type your code into your whatever editor you have. Then <cut> your code into the scratchpad. After running: "perl -d" <Paste> your code into the debugger. Typing "c" will execute your code.
After using your editor to make changes to your code, type "R" and paste your new code.
If you insist on writing something yourself I would highly recommend copying heavily from something like Text::LineEditor
s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s
|-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,,
$|=1,select$,,$,,$,,1e-1;print;redo}
| [reply] |