Help for this page

Select Code to Download


  1. or download this
         36 # get a timestamp in the format YYYYMMDDHMS
         37 my ($year, $month, $dayofmonth, $hour, $minute, $second)
         38         = (localtime())[5, 4, 3, 2, 1, 0];
    
  2. or download this
    # get a timestamp in the format YYYYMMDDHMS
    my ( $second, $minute, $hour, $dayofmonth, $month, $year )
            = localtime;
    
  3. or download this
         70 parse_config($path_to_conf_file) if $path_to_conf_file;
    
    ...
        214             $path_to_log_file = $1;
        215             next;
        216         }
    
  4. or download this
        268 sub logger {
        269     my ($message, $level) = @_;
    ...
        283     
        284     print $LOG "[" . scalar(localtime()) . "] " . $level_names
    +[$level] . ": $message\n";
        285 }
    
  5. or download this
        syswrite $LOG "[" . scalar(localtime()) . "] " . $level_names[$lev
    +el] . ": $message\n";
    
  6. or download this
        202             if (-d $1) {
        203                 warn "in $conf_filename line $.: $1 is a direc
    +tory";
    ...
        220                 next;
        221             }
        222             unless (-e $1) {
    
  7. or download this
        202             if (-d $1) {
        203                 warn "in $conf_filename line $.: $1 is a direc
    +tory";
    ...
        220                 next;
        221             }
        222             unless (-e _) {