in reply to Error line is too large for CMD window

You can configure the command prompt to allow for more lines of scroll back, I have no idea how this is done on Windows 8. What you may want to do is just write STDERR to file, for example:

#!/usr/bin/perl # derp.pl, an example in sloppiness use strict; use warnings; $| = 1; # disable buffering print $foo;

run like so:

perl derp.pl 2>error.txt

You can then list the contents of error.txt using:

type error.txt

Or view it in your text editor of choice.

Update: For further discussion see also how do i redirect STDOUT, STDIN, or STDERR to a FILE? and http://perlmaven.com/stdout-stderr-and-redirection.