Syntactic Confectionery Delight | |
PerlMonks |
Re: use of print f and sprint fby busunsl (Vicar) |
on Nov 10, 2004 at 12:16 UTC ( [id://406656]=note: print w/replies, xml ) | Need Help?? |
Have a look at the dokumentation of printf: perldoc -f sprintf You need a format string to format your values. You can try something like this: printf "$l, $j, %.3f, %.3f, %.3f, %.3f\n", $Hx, $Hy, $Hxy, $mutual;
In Section
Seekers of Perl Wisdom
|
|