programming-examples/perl/Report/Writes out as many formatted lines of output as necessary.pl

14 lines
299 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/local/bin/perl
@quotation = <STDIN>;
$quotation = join("", @quotation);
$~ = "QUOTATION";
write;
format QUOTATION =
Quotation for the day:
-----------------------------
~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$quotation
-----------------------------