in reply to C-style for loop
"c-style" is just the name of the loop, it depends what you need...TIMTOWTDI! (*)
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 Section
Seekers of Perl Wisdom