Anyway, with foreach-loop you shouldn't need a new array, since the iterating variable is an alias.
for $value ( @values) { $value=_clean_cgi_param($value); }
(*)UPDATE: in many cases foreach-loops are easier to maintain and less redundant than c-style. If you explicitly need to generate a *new* array, prefere map or grep.
Cheers LanX
- - - - - Which song???
In reply to Re: C-style for loop
by LanX
in thread C-style for loop
by mandog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |