programming-examples/perl/Report/Passing value to the format.pl

14 lines
212 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
format STDOUT =
@<<<<<<<<<<<@<<<<<<<<<<<<<<<
$text1 $text2
@<<<<<<<<<<<@<<<<<<<<<<<<<<<
$text3 $text4
.
$text1 = "Hello";
$text2 = "there!";
$text3 = "How're";
$text4 = "things?";
write;