perlfunc
gods
<P>
printf - output a formatted list to a filehandle
<P>
<HR>
<P>
printf
<FONT SIZE=-1>FILEHANDLE</FONT>
<FONT SIZE=-1>FORMAT,</FONT>
<FONT SIZE=-1>LIST</FONT>
<P>
printf
<FONT SIZE=-1>FORMAT,</FONT>
<FONT SIZE=-1>LIST</FONT>
<P>
<HR>
<P>
Equivalent to <CODE>print FILEHANDLE sprintf(FORMAT, LIST)</CODE>, except that <CODE>$\</CODE>
(the output record separator) is not appended. The first argument of the
list will be interpreted as the [perlfunc:printf|printf()] format. If <CODE>use locale</CODE> is in effect, the character used for the decimal point in formatted real numbers is affected by the
<FONT SIZE=-1>LC_NUMERIC</FONT> locale. See
[perlman:perllocale|the perllocale manpage].
<P>
Don't fall into the trap of using a [perlfunc:printf|printf()] when a simple
[perlfunc:print|print()] would do. The [perlfunc:print|print()] is more efficient and less error prone.
<HR>