Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Abstracting SQL without Stored Proceduresby paulbort (Hermit) |
on Sep 30, 2004 at 18:16 UTC ( [id://395439]=note: print w/replies, xml ) | Need Help?? |
Using a hash is a good idea, regardless of how you store it, because it allows you to dynamically switch between statements, for things like different sort orders, or different inserts. ( My app inserts a row in either a queue table or a log table depending on outside data. By constructing the inserts to use the same parameter list, I can just use the appropriate hash key. )
Another way to store the statements would be with Data::Dumper. -- Spring: Forces, Coiled Again!
In Section
Seekers of Perl Wisdom
|
|