Here's why you shouldn't do this: Part 1, Part 2, and Part 3.
And here's what you should do: use a hash or something similar. You have the right idea using $query->param, then grabbing the variables that you need to match based on a pattern. Instead of creating *variables* with those matched names, add entries to a hash.
In reply to Re: Variable variable names
by btrott
in thread Variable variable names
by cei
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |