Just another Perl shrine | |
PerlMonks |
Re: Reading data from mySQL into hashes and manipulation of hashesby simeon2000 (Monk) |
on Aug 30, 2002 at 12:46 UTC ( [id://194087]=note: print w/replies, xml ) | Need Help?? |
For #1 you could shorten that "result" hash code by using array slices:
You also don't need to quote your "$row[xyz]" declarations. I'm not sure what to tell you about those totals though. I can tell you that this is a very strange way to design a database... having "column names" stored in columns. I would suggest a rewrite and then you can use fetchrow_hashref a lot easier. But that's just me. --
In Section
Seekers of Perl Wisdom
|
|