Copyright © tutorialspoint.com

PERL write Function


Syntax

write FILEHANDLE

write


Definition and Usage

Writes a formatted record, as specified by format to FILEHANDLE. If FILEHANDLE is omitted, then writes the output to the currently selected default output channel. Form processing is handled automatically, adding new pages, headers, footers, and so on, as specified by the format for the filehandle.

Return Value

  • 0 on failure

  • 1 on success


Copyright © tutorialspoint.com