Is there a better way of logging the details in a file. E.g.
I would like the error message to go into a file instead of going to the stderr
if (system ($cmd)) {
die "Error $!\n";
}
I don't want to code the above as
open (LOG,"> $logFile");
if (system ($cmd)) {
print LOG "Error $!\n";
die;
}
Any pointers!!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
