in reply to Variable Variables
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 :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Variable Variables
by xorl (Deacon) on Sep 24, 2001 at 22:48 UTC |