Output along with the template : Output « Report « Perl






Output along with the template

   


#!/bin/perl
$name="Tommy";
$age=25;
$salary=50000.00;
$now="03/14/97";
# Format Template
format STDOUT=
---------------------REPORT-------------------------
Name: @<<<<<< Age:@##Salary:@#####.## Date:@<<<<<<<<<<
      $name,       $age,       $salary,       $now

.
# End Template
write;
print "Thanks for coming. Bye.\n";

   
    
    
  








Related examples in the same category

1.Call write to output the format
2.Force a new page to output.
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.