foreach ($query->param) {
$$_ = $query->param($_);
}
Saves plenty of typing ;) Of course, you could always just
select a few variables to use:
foreach (qw(alpha bravo charlie)) {
$$_ = $query->param($_);
}
Which gives you $alpha, $bravo and $charlie with the values returned from the form.
HTH :-) In reply to Re: Variable Variables
by Anonymous Monk
in thread Variable Variables
by marius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |