Call write to output the format : Output « Report « Perl






Call write to output the format

   

format STDOUT =
@*
$text
@<<<<<<<<<<<<@<<<<<<<<<<<<@<<<<<<<<@<<<<
$firstname   $lastname    $ID      $extension
.

$text = "First Line...";
$firstname = "Cary";
$lastname = "Grant";
$ID = 1234;
$extension = x456;

write;

   
    
    
  








Related examples in the same category

1.Force a new page to output.
2.Output along with the template
3.Dynamic Report Writing
4.Write a format to a file
5.Writes out as many formatted lines of output as necessary.
6.Writes out multiple formatted lines of output and suppresses blank lines.
7.Writes out multiple formatted lines of output.