Help for this page

Select Code to Download


  1. or download this
    open(LOGFILE, ">>$self->{logfile}") or die "Cannot open logfile";
    
  2. or download this
    sub log_message {
            my $self=shift;
    ...
                    print LOGFILE @_;
            }
    }
    
  3. or download this
    $self = 'Entering sub main::do_something
    '
    Can't use string ("Entering sub main::do_something
    ") as a HASH ref while "strict refs" in use at LogMessages.pm line 43.
    
  4. or download this
                    *{ $sym } = sub {
                            log_message("Entering sub $pkg\:\:$name\n");
    ...
                            log_message("Leaving sub $pkg\:\:$name\n");
                            return @ret;
                    };