in reply to Re: Urgent help needed by inexperienced programmers
in thread Urgent help needed by inexperienced programmers
There's been lots of discussion on why $$1 = ... is a *bad* idea; generally it means you're looking at the wrong end of the problem. You could do:
which'd give you the question vals in an array, indexed by N but ... that's only slightly better. Overwrites if N is in there twice, etc.foreach $val @params { if ($val =~ /^question(\d+)/) { $questions[$1] = $q->param($val); } }
a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Urgent help needed by inexperienced programmers
by PsychoSpunk (Hermit) on Dec 07, 2000 at 05:29 UTC |