Command line arguments are not read. Get messsge that COLUMNS and LINES variables are invalid…,
I have run this program on other Windows machines with no problems. When I run it in debug mode and manually assign the values to @ARGV the program works.
I deleted Perl and reinstalled it and have the same problem.
From your command line, run
to have the console report what it’s current settings are. Windows will not set an environment variable based on those values. To confirm this, check it with
One way to work around the problem is to create those variables manually with the set Windows command. My console reports 30 lines and 120 columns, so I could
The other general way to avoid the use of LINES and COLUMNS is to cue the Perl code that you’re not running inside a real terminal window by setting the TERM type to something other than the default Linux VT100 mode. Windows cmd is a “dumb” terminal, so