On 6/7/06, Graeme McLaren <[EMAIL PROTECTED]> wrote:
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);

Does your code define a suitable new() ? The bare minimum would be in
a file with

   package em_log;

   sub new { return bless {}, shift; }

so why is it saying it can't find it?

Also have you "use"d or "require"d your code? (But that not seems the
problem, since the error is after building an instance of em_log.)

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