programming-examples/perl/Report/Output along with the template.pl

15 lines
336 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/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";