|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^4: A Case with 5 Var'sby eric256 (Parson) |
| on Jan 25, 2007 at 15:38 UTC ( #596519=note: print w/ replies, xml ) | Need Help?? |
|
It depends how your query is built. Hopefully each variable is responsible for just one section, then you just build the query up as you go.
Since I have no idea what kind of query that is I had no idea what parts go where, but hopefully that gives you and idea how it can be done. If your query is completly dependent on the elements available then you could combine your ifs together some for readability at least
That is not the recommended solution, just one of the many ways to do it. ___________ Eric Hodges
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||