![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Clean Up MySQL Codeby DrManhattan (Chaplain) |
on Apr 20, 2003 at 15:31 UTC ( #251831=note: print w/replies, xml ) | Need Help?? |
You can reduce three of your lines to one by using selectall_arrayref() like so:
If you want to write it as a subroutine, this would work: Then you could call it like this:
-Matt
In Section
Seekers of Perl Wisdom
|
|