programming-examples/perl/Report/A simple format example.pl

21 lines
319 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl
use warnings;
use strict;
my $greeting = 'Hello';
my $planet = 'world';
write();
$greeting = 'Greetings';
$planet = 'Mars';
write();
$greeting = 'Howdy';
$planet = 'Pluto';
write();
format STDOUT =
I would like to say @<<<<<<<<< @<<<<<<<!
$greeting, $planet