I'm trying to install a module using the Perl CPAN shell, in a Windows environment. The module install fails with a very long list of errors that scrolls off the top of the "cmd" console. I want to redirect it to a file to be able to read it all.
I've read up on the CPAN documentation and found that output redirection (and even piping) is possible, using syntax such as this:
cpan> install Cairo > install_log.txt
But unfortunately it redirects only STDOUT. The errors still go to the console, and don't get captured in the file.
I want to be able to redirect both STDOUT and STDERR into a file, is this possible?