good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^2: C-style for loop
by LanX
|
|