more useful options | |
PerlMonks |
Re^3: print in CMD windowby BillKSmith (Monsignor) |
on Sep 16, 2021 at 15:33 UTC ( [id://11136832]=note: print w/replies, xml ) | Need Help?? |
Thank you pryrt. Your second example is exactly what I asked for in my first post. I have already extended it to test newlines by appending \n to the input string and \r\n to the expected output string (and removing chomp). My project started as a minor annoyance and ended with a one-line solution. I never dreamed that in between, I would need to learn details of windows (including a reference to an old DOS manual to get started), Unicode, and even perl (I have never used a child process).
Bill
In Section
Seekers of Perl Wisdom
|
|