- or download this
open(LOGFILE, ">>$self->{logfile}") or die "Cannot open logfile";
- or download this
sub log_message {
my $self=shift;
...
print LOGFILE @_;
}
}
- 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.
- or download this
*{ $sym } = sub {
log_message("Entering sub $pkg\:\:$name\n");
...
log_message("Leaving sub $pkg\:\:$name\n");
return @ret;
};