[cgiapp] Can't call method OTrakker=HASH(0x197d200) on an undefined value

2006-10-19 Thread Robert Hicks
Thanks to FF I get the following: user_name=2clin_id=1charge_ids=1project_names=3task_names=add_task=Star+Treksubtask_names=start_date=10%2F19%2F2006end_date=total_hours=.25rm=taskform In my code I take the add_task above and put it in a variable like so: my $new_task_name =

Re: [cgiapp] Can't call method OTrakker=HASH(0x197d200) on an undefined value

2006-10-19 Thread Mike Friedman
On 10/19/06, Robert Hicks [EMAIL PROTECTED] 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