Not sure if I understand the question right, but you can assign the hash
reference as many times as needed.  By using it in a certain scope you can
also dynamically define and undefine it.  Perl is dynamic, where you don't
have to define any data structures, just keep assigning values to it and it
will keep expanding itself.

Hope I understand you correctly.

Ilya Sterin

-----Original Message-----
From: Mohammad Shoja
To: dbi-users mailing list
Sent: 06/04/2001 8:14 AM
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.
how can I bypass this, just like using structure in C. to defining it
once
and using it as a data type.
I know that I can implement it in Object oriented perl but How can I
handle it in structured perl-dbi programming.

Any help and suggestion appriciate.
Thank you all in advance.
regards
----------------------------------------------------------------------
Mohammadreza Shojatalab                              
European Bioinformatics Institute    Tel: +44 (0)1223 494 669

EMBL Outstation                      Fax: +44 (0)1223 494 468

Wellcome Trust Genome Campus         E-Mail: [EMAIL PROTECTED]

Hinxton, Cambridge                   URL: http://www.ebi.ac.uk/~shoja

CB10 1SD, UK

Reply via email to