Perl formline Function

Advertisements


Description

This function is used by the format function and related operators. It formats LIST according to the contents of PICTURE into the output accumulator variable $^A. The value is written out to a filehandle when a write is done.

Syntax

Following is the simple syntax for this function:

formline PICTURE, LIST

Return Value

This function always returns 1.

Example

Following is the example code showing its basic usage:


When above code is executed, it produced following result:




Advertisements
Advertisements