Perl write Function

Advertisements


Description

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.

Syntax

Following is the simple syntax for this function:

write FILEHANDLE

write

Return Value

This function returns 0 on failure and 1 on success.

Example

Following is the example code showing its basic usage:


When above code is executed, it produced following result




Advertisements
Advertisements