in reply to sprintf and for loop weirds???
As a sidenote, I suggest you to write similar loops in a more "perlish" way:
Update: Ermm... Of course one of the scripts DOES NOT work well. It's better I don't say why I had the impression the first one worked ;)foreach (@a) { push @b, springf("%.2f", $_); }
|
|---|