Update: Thank you all for pointing me to script. I realise I want logging often when learning new things (in this case the CPAN shell). In my search I also discovered two other possibilities, although script remains the best and simplest:
use File::Tee; tee STDOUT, { prefix => 'OUT: ', lock => 1, mode => '>>', open => '/tmp/log.txt' }; tee STDERR, { prefix => 'ERR: ', lock => 1, mode => '>>', open => '/tmp/log.txt' };
In reply to Logging the CPAN Shell by carol
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |