LanX has asked for the wisdom of the Perl Monks concerning the following question:
hi
@work I'm bound to Win7 and sometimes when posting here I use cmd.exe for a little demo and try to copy it into the textarea
Unfortunately (unlike with a linux x terminal) the newlines get totally messed up
D:\Users\lanx>perl -MO=Deparse,-p,-x10 -e"sub {return 1 and 0 }"sub { + + ((return 1) and 0); + } + ;
instead of
today - I don't know how - I was once able to do it without needing to manually post-process the code.D:\Users\lanx>perl -MO=Deparse,-p -e"sub { return 1 and 0 }" sub { ((return 1) and 0); } ; -e syntax OK
Any hints how to do it?
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [SOLVED] copying multiline code from cmd.exe with reasonable newlines
by KurtZ (Friar) on Jun 02, 2017 at 22:39 UTC | |
by LanX (Saint) on Jun 02, 2017 at 23:12 UTC |