Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: (WIN) copy and pasting from Perl-prints inside cmd.exe

by LanX (Saint)
on Mar 09, 2020 at 19:08 UTC ( [id://11114036]=note: print w/replies, xml ) Need Help??


in reply to Re: (WIN) copy and pasting from Perl-prints inside cmd.exe
in thread (WIN) copy and pasting from Perl-prints inside cmd.exe

Great, many thanks.

Now I need to nail down if it's Perl or Win which changed.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^2: (WIN) copy and pasting from Perl-prints inside cmd.exe

Replies are listed 'Best First'.
Re^3: (WIN) copy and pasting from Perl-prints inside cmd.exe
by NetWallah (Canon) on Mar 09, 2020 at 19:40 UTC
    FYI - on the same system - the same perl run from the powershell command line doe NOT introduce 150 spaces when copied.

    So the extra space behaviour seems to be particular to Activestate perl and the windows 'cmd' prompt.

                    "From there to here, from here to there, funny things are everywhere." -- Dr. Seuss

      Thanks again.

      I didn't have time to look into the code, but I seem to remember that different file handles are used for the prompt and for the eval.

      Could be that the cmd.exe is messing it up.

      Or Activestate patched something.

      Good that I asked here, because initially I was blaming emacs, which added more headache to the scenario. ..

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

      > So the extra space behaviour seems to be particular to Activestate perl and the windows cmd prompt.

      I just tested to run GIT's Perl inside a cmd.exe instead of a GIT-bash and copying worked fine

      so it's rather the perl/debugger version conflicting with the cmd.exe

      > Git\usr\bin\perl.exe -de0 ... Loading DB routines from perl5db.pl version 1.51 ... DB<3> say for 1..3 1 2 3 DB<4> ... This is perl 5, version 26, subversion 2 (v5.26.2)

      and you're right Powershell doesn't have that problem ... (it's just tooo blue ;-)

      DB<1> say for 1..3 1 2 3 DB<2>

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114036]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 00:53 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found