Perl write Function
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.
Following is the example code showing its basic usage:
When above code is executed, it produced following result