in reply to Re: C-style for loop
in thread C-style for loop
@cnn: your solution is almost the shortest (well,you can abbreviate foreach with for ; ). And I prefere this one!
But the OP wants to conform to the styleguides of PBP & Perl Critics, and postfix-loops are disadviced!
If I was in this situation, I would prefere
with the routine transforming $_[0] directly, (it's an alias)_clean_param($_) for @values;
UPDATE: or
_clean_params(@values); # sub takes arr_ref by prototype
Cheers LanX
- - - - - Which song???
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: C-style for loop
by DrHyde (Prior) on Nov 17, 2008 at 10:15 UTC | |
by LanX (Saint) on Nov 17, 2008 at 15:32 UTC |
In Section
Seekers of Perl Wisdom