This function 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.
Following is the simple syntax for this function −
write FILEHANDLE write
This function returns 0 on failure and 1 on success.