Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Output a list to a filehandleFixed-length buffered input fr ... (Berikutnya)
Input and output functions

Output a formatted list to a filehandle

Daftar Isi

  • printf FILEHANDLE FORMAT, LIST

  • printf FILEHANDLE
  • printf FORMAT, LIST
  • printf

    Equivalent to print FILEHANDLE sprintf(FORMAT, LIST), except that $\(the output record separator) is not appended. The first argument of thelist will be interpreted as the printf format. Seesprintf for anexplanation of the format argument. If you omit the LIST, $_ is used;to use FILEHANDLE without a LIST, you must use a real filehandle likeFH, not an indirect one like $fh. If use locale (includinguse locale ':not_characters') is in effect andPOSIX::setlocale() has been called, the character used for the decimalseparator in formatted floating-point numbers is affected by the LC_NUMERIClocale setting. See perllocale and POSIX.

    Don't fall into the trap of using a printf when a simpleprint would do. The print is more efficient and lesserror prone.

 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Output a list to a filehandleFixed-length buffered input fr ... (Berikutnya)