Help for this page

Select Code to Download


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