Hi all, I have a weird error:
Can't locate object method quot;dbhquot; via package quot;em_logquot; 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;
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
On 6/7/06, Graeme McLaren [EMAIL PROTECTED] wrote:
Hi there, thanks for your reply, here is my constructor:
sub new{
my ($class) = @_;
my $self = {
_table = undef,
_id = undef, # this refers to the column named
pkey_updated_record in the log table
_dbh = undef,
On Wed, 2006-07-06 at 15:50 +0100, Graeme McLaren wrote:
Hi all, I have a weird error:
Can't locate object method quot;dbhquot; via package quot;em_logquot; 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
On 6/7/06, Graeme McLaren [EMAIL PROTECTED] wrote:
Can't locate object method dbh via package em_log at
in my class I have:
sub dbh{
Is it, really and truly, in the correct class? And your class is named
em_log, in all lower case? (This method isn't inherited, is it?)
Generally, Perl
Graeme,
(Send your messages to the list beginners@perl.org so that more people
can help you out.)
I still don't know where your problem is. The files you sent look ok,
with some remarks:
em_log.pm should contain the statement package SI::eventmaster::em_log;
rather than package em_log;
Hi there .. thank you for your reply - I managed to get it fixed.
Not sure its the greatest class ever but it works.
Thanks again,
G :)
From: Mr. Shawn H. Corey [EMAIL PROTECTED]
To: beginners@perl.org
Subject: Re: Can't locate object method - weirdness
Date: Wed, 07 Jun 2006 12