Perl Programming/Keywords/printf

The printf keyword
The printf function is equivalent to print FILEHANDLE sprintf(FORMAT, LIST). The only difference to print is that the output record separator, $\, is not appended. The parametres FORMAT and LIST are parsed as a single list, where fhe first argument is understood as the format information.

If the list is omitted, the contents of $_ is used as format information. To use the <tt>printf</tt> without a <tt>printf</tt>, a real filehandler like <tt>FH</tt> and not an indirect filehandler like <tt>$fh</tt> is required. In this case, if <tt>$_</tt> contains formatting information, it will be replaced by an empty string and a warning will be emitted, if they are enabled. So, it's better to use <tt>print</tt> when the contents of <tt>$_</tt> are to be used as formatting information.

<tt>print</tt> is simpler and less errorprone than <tt>printf</tt>ǃ

Examples
The code