in reply to Re: sprintf and for loop weirds???
in thread sprintf and for loop weirds???
should be$b[n]=sprintf("%.2f", $a[n]);
You should use strict and warnings which would automatically catch this mistake for you.$b[$n]=sprintf("%.2f", $a[$n]);
-Blake
|
|---|