Help for this page
# print messages to both console and logfile sub PrintLogCon { print @_; print(LOG @_) or die "Error printing to $logfile: $!"; }
use warnings; use strict; ... ... close LOG or die "Error closing $logfile: $!"; __END__