Help for this page

Select Code to Download


  1. or download this
    # start the logfile
    slog "$logfile";
    slog "=======================================START=";
    ...
    slog "= ".(scalar localtime);
    # do some stuff
    noslog;
    
  2. or download this
    sub slog(@) { 
        $::_slogfh||=new IO::File $_[0],">>";
        print $::_slogfh @_,$/ 
    };
    sub noslog() { undef $::_slogfh };