sample: modification date of source text
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 17 May 2017 23:37:58 +0000 (01:37 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 May 2017 17:29:34 +0000 (19:29 +0200)
sample.plp

index 15323a34db2023c3fdf9e32cdd05346d749687a8..6de2b98176ef3d913d78e390407bac5173ae7286 100644 (file)
@@ -1,13 +1,16 @@
 <(common.inc.plp)><:
 
 <(common.inc.plp)><:
 
+my $textinc = 'data/unicode-sampler/unicode.txt';
+
 Html({
        title => "unicode sampler",
        version => '2.0',
        stylesheet => [qw'light dark mono red'],
 Html({
        title => "unicode sampler",
        version => '2.0',
        stylesheet => [qw'light dark mono red'],
+       data => $textinc,
 });
 
 });
 
-open my $source, '<', 'data/unicode-sampler/unicode.txt'
-       or die "Could not open text: $!\n";
+open my $source, '<', $textinc
+       or die "Could not open text at $textinc: $!\n";
 local $/ = "\n\n";
 
 my $top = readline $source;
 local $/ = "\n\n";
 
 my $top = readline $source;