P is for Practical | |
PerlMonks |
Re: Clean Up MySQL Codeby astaines (Curate) |
on Apr 21, 2003 at 09:42 UTC ( [id://251966]=note: print w/replies, xml ) | Need Help?? |
Here's a slightly different approach - I create a load of SQL statements, put them in an array,
and then run them using this subroutine -
The idea here is that I like to pass statement handles around ($sth), which I can then do whatever I want with. I find this much more flexible than passing result sets around. YMMV! Happpy Easter, --Anthony Staines
In Section
Seekers of Perl Wisdom
|
|