RE: passing database data to a sub



Hawkes, Mick I <mailto:Michael.I.Hawkes@xxxxxxxxxxxxxxxx> wrote:

: Also, I put all the changes in you recommended, but I still get the
: same error!

I didn't test the fetchall_arrayref() solution. You shouldn't add
it until you have tested it first.


: Error executing run mode 'Mode_0': can't call method "param" on an
: undefined value at Test_code.pm line 283

Check line 90. There's a typo. Perhaps you should turn on warnings.

$template->param(db_loop => $self>GetOfficers());

Should be:

$template->param(db_loop => $self->GetOfficers());



HTH,

Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328

.



Relevant Pages