Help for this page

Select Code to Download


  1. or download this
    # turn on autoflush for STDIN and STDOUT
    select STDIN;
    $|=1;
    select STDOUT;
    $|=1;
    select STDERR;
    
  2. or download this
    sub logger {
      # set up a file handle for a log file.
    ...
      print LOG "weldd $$: ", scalar(localtime), " @_\n";
      close LOG;
    }