[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgiapp
Subject:    [cgiapp]  Re: Can't call method "OTrakker=HASH(0x197d200)" on an undefined
From:       Robert Hicks <sigzero () gmail ! com>
Date:       2006-10-19 20:52:09
Message-ID: eh8ohk$hu4$1 () sea ! gmane ! org
[Download RAW message or body]

Mike Friedman wrote:
> On 10/19/06, Robert Hicks <sigzero@gmail.com> wrote:
>>
>>
>>      if ($new_task_name) {
>>          $sth1->$self->dbh->prepare("
> 
> 
> 
> That should be:
> 
> if ($new_task_name) {
>    my $sth1 = $self->dbh->prepare( ...
> 
> 
> As you have it, you're trying to use the strinigified version of $self as a
> method to be called on $sth1, which is undefined.
> 
> 
> 
> Mike
> 

Crud, do you have any idea how many times I have stared at that line of 
code!  lol

Robert


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@lists.erlbaum.net
For additional commands, e-mail: cgiapp-help@lists.erlbaum.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic