Help for this page

Select Code to Download


  1. or download this
    41 $self=shift
    
  2. or download this
    use LogMessages qw(/path/to/logfile);
    
  3. or download this
    my %logfile;
    
    ...
        my $class          = shift;
        $logfile{ +caller} = @_ ? shift : "/tmp/logfile.$$";
    };
    
  4. or download this
    sub _log : ATTR(CODE) {
        my ($pkg, $sym, $code) = @_;
    ...
            };
        }
    }
    
  5. or download this
    sub log_message {
        my $logfile = shift;
    ...
            print $LOGFILE @_;
        }
    }