carol has asked for the wisdom of the Perl Monks concerning the following question:
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' };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Logging the CPAN Shell
by marto (Cardinal) on May 11, 2008 at 13:28 UTC | |
|
Re: Logging the CPAN Shell
by quester (Vicar) on May 11, 2008 at 21:22 UTC | |
|
Re: Logging the CPAN Shell
by planetscape (Chancellor) on May 12, 2008 at 00:51 UTC |