Help for this page

Select Code to Download


  1. or download this
    untie *STDOUT;
    $log = tie(*STDOUT, 'module_name', "logfile_name")
    ...
    .
    .
    .
    
  2. or download this
    open STDOUT, ">>$logfile";
    open STDERR, ">&STDOUT";