"be consistent" | |
PerlMonks |
Re^2: C-style for loopby LanX (Saint) |
on Nov 15, 2008 at 21:54 UTC ( [id://723851]=note: print w/replies, xml ) | Need Help?? |
@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) UPDATE: or
Cheers LanX - - - - - Which song???
In Section
Seekers of Perl Wisdom
|
|