Your skill will accomplish what the force of many cannot |
|
PerlMonks |
(Ovid) Re: Very Simplyby Ovid (Cardinal) |
on Mar 21, 2002 at 19:24 UTC ( [id://153392]=note: print w/replies, xml ) | Need Help?? |
while will execute while a condition evaluates as true. What you want to do is iterate over your params. foreach is one way to do this:
However, I would look down on this in a code review (probably) as one typically needs to treat each parameter as a special case and untaint it according to your needs. Iterating over all of the parameters suggests that this is not being done. Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Seekers of Perl Wisdom
|
|