File: demo_advert.pl

package info (click to toggle)
libperl6-form-perl 0.090-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 584 kB
  • sloc: perl: 3,080; makefile: 8
file content (25 lines) | stat: -rwxr-xr-x 981 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use 5.010;
use warnings;

use Perl6::Form;

$text = <<EOSOL;
Now is the winter of our discontent / Made glorious summer by this sun of York; / And all the clouds that lour'd upon our house / In the deep bosom of the ocean buried. / Now are our brows bound with victorious wreaths; / Our bruised arms hung up for monuments; / Our stern alarums changed to merry meetings, / Our dreadful marches to delightful measures. Grim-visaged war hath smooth'd his wrinkled front; / And now, instead of mounting barded steeds / To fright the souls of fearful adversaries, / He capers nimbly in a lady's chamber.
EOSOL

my $advert = join "", <DATA>;

print form
	{page=>{width=>70}, layout=>'across' },
   	 '{[[[[[[[[[[[[{*}]]]]]]]]]]]]}', {height=>2}, $text,
   	 '{V{*}V}   {="{*}"=}   {V{*}V}', $advert,
   	 '{VVVVVVVVVVVV{*}VVVVVVVVVVVV}', {height=>undef};

__DATA__

+---------------------+
|                     |
| Eat at Mrs Miggins! |
|                     |
+---------------------+