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 :)



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to