LanX has asked for the wisdom of the Perl Monks concerning the following question:
I want to hack my own Perl shell which works alike on Win and Linux w/o resorting to bash.
But now I'm banging my head against a strange C&P problem:
This is what I get after copying from the Perl-debugger started with perl -dE0 inside a cmd.exe on Win
+ DB<1> say for 1..3 1 2 3 + DB<2>
But that's what I originally see in the console
DB<1> say for 1..3 1 2 3 DB<2>
I was already experimenting for hours to find the reason for the strange indentation of newlines.
Pasting the same lines into emacs and examining the hex-codes show exactly 74 spaces "\x20" in front of the DB<*> prompts.
My guess is that Perl is printing some "newline" codes are emittited that windows doesn't like.
FWIW: settings of the cmd.exe tell me it's running with
C:\>set TERM TERM=dumb C:\>
Strangely copying from outside perl-applications on the cmd-prompt level doesn't show that problem. ( reply has the same issue)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|