Can't locate object method - weirdness
- From: iamnotregistered@xxxxxxxxxxx (Graeme McLaren)
- Date: Wed, 07 Jun 2006 15:50:27 +0100
Hi all, I have a weird error:
Can't locate object method "dbh" via package "em_log" at /path/log.cgi line 15.
line 15 is the second of these two lines:
my $log = em_log->new;
$log->dbh($dbh);
in my class I have:
sub dbh{
my $self = shift;
my $dbh = shift;
$self->{_dbh} = $dbh if defined($dbh);
return $self->{_dbh};
}
so why is it saying it can't find it?
Also on a side issue the HTML isn't being interpreted by the browser, I've set the content type to be text/html - so don't understand that one either.
Cheers for anything here.
G :)
.
- Follow-Ups:
- Re: Can't locate object method - weirdness
- From: Tom Phoenix
- Re: Can't locate object method - weirdness
- From: Mr. Shawn H. Corey
- Re: Can't locate object method - weirdness
- From: Adriano Ferreira
- Re: Can't locate object method - weirdness
- Prev by Date: Re: Search for a Word in a file
- Next by Date: Re: Can't locate object method - weirdness
- Previous by thread: Search for a Word in a file
- Next by thread: Re: Can't locate object method - weirdness
- Index(es):
Relevant Pages
|