in reply to Re^2: How to get installtion Perl modules log?
in thread How to get installtion Perl modules log?
Or you use the alternate syntax script -c COMMAND log_file, which means you'll have a mess with quoting, unless you use the LIST form of system:
(not tested)my $command = qq{perl -MCPAN -e 'install q/Bundle::Snapshot_2007_07_23 +_00/'}; system('script', '-c', $command, '/cygdrive/c/cpan.log');
|
|---|