----- Original Message -----
From: Mohammad Shoja <[EMAIL PROTECTED]>
To: dbi-users mailing list <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 4:14 PM
Subject: I need structure help!!!


> Hi folks,
> I am using dbi with mysql to develope a data access interface for my
> application,
> and also I am using hash to retriving rows from database using
> fetchrow_hashref function,
> everything is fine, But the problem is I have to redefine a hash for every
> table which I am working with each time and in each function.

What do you exactly mean by redefining a hash? and what are the
disadvantages in yout opinion?
What would a struct do and in what way do you want to use it?
You could simply have a database fetch function return a hashref which you
put in a scalar in your program.
Do you have a code example?

Maarten.

Reply via email to