root/libswish3/trunk/perl/test.pl

Revision 1913, 0.6 kB (checked in by karpet, 1 year ago)

for all the world to see

Line 
1 #!/usr/bin/perl
2
3 use SWISH::Prog::Headers;
4 binmode STDOUT, ":utf8";
5
6 my $string = "\x{263a}\x{263a}\x{263a}\x{263a}\x{263a}";
7 my $doc = <<EOF;
8 <?xml version="1.0" encoding="utf-8"?>
9 <doc>
10 1234 56789 0 $string
11 </doc>
12 EOF
13
14 print SWISH::Prog::Headers->head(
15                                  $doc,
16                                  {
17                                   url   => 'somedoc',
18                                   mtime => time(),
19                                   mime  => 'text/xml'
20                                  }
21                                 )
22   . $doc;
Note: See TracBrowser for help on using the browser.