octopusgrabbus has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to debug a simple Perl script using Strawberry Perl. I ran into the exact errors mentioned in these PerlMonks posts

https://www.perlmonks.org/?node_id=1059438

and

https://www.perlmonks.org/?node_id=840731 .

After fixing the first error regarding lines and columns

set LINES=40
set COLUMNS=80

and running these in a .bat file before starting the debugger, now I have a new error:

SetConsoleMode failed, LastError=|6| at C:/Perl/perl/vendor/lib/Term/ReadKey.pm line 346.

What else should I be doing to debug?

Replies are listed 'Best First'.
Re: Console Errors On Windows
by pryrt (Abbot) on Apr 04, 2019 at 19:58 UTC
Re: Console Errors On Windows
by octopusgrabbus (Acolyte) on Apr 04, 2019 at 20:17 UTC
    Thank you. I did not see the set TERM=dumb fix. That fixed it.