Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use File::Copy; .... my $errorLog = "copyError.txt"; open STDERR, ">$errorLog" || die "Cant open $errorLog:\n$!"; #Show output to below file my $information = "$copy.txt"; open(FH, ">$information") || die "Cant open $information:\n$!"; select(FH); copy($fileOne,$fileTwo) || die "Did not copy: $!"; close(STDERR) || die "Cant close STDERR: $!"; close(FH) || die "Cant close File Handle: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error output to screen
by derby (Abbot) on Aug 01, 2006 at 13:51 UTC | |
by Anonymous Monk on Aug 01, 2006 at 14:28 UTC | |
|
Re: Error output to screen
by imp (Priest) on Aug 01, 2006 at 14:43 UTC |