Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Mysql Issues (newb)by r34d0nl1 (Pilgrim) |
on Dec 17, 2004 at 02:13 UTC ( [id://415529]=note: print w/replies, xml ) | Need Help?? |
Generally the hash structure provides a more effective way to deal with the retrieved data. I'm still learning the basic of PERL, but I've been using hashes to deal the data retrieved from the database. So it would be interesting to use hashes instead of arrays. I really don't know if in your case the use of arrays is mandatory. but you could do, for example creating a hash like in: my %rpt = ( ) ; Then, building the hash with the information in the fields:
And then, when going to use the information, just use the hash you created, like this:
In Section
Seekers of Perl Wisdom
|
|