Help for this page

Select Code to Download


  1. or download this
    sub mprint
    {
            my @fh;
    ...
    open($se, ">&STDERR");
    
    mprint $se, $so, "This tests\n";
    
  2. or download this
    my @default = ($so);
    my @log_and_print = ($log, $so);
    
    mprint @default, "Standard message\n";
    mprint @log_and_print, "This goes to log and screen\n";