]> git.sesse.net Git - xml-template/blob - perl-sax/simple.pl
Make the C++0x syntax a lot more concise using initializer lists.
[xml-template] / perl-sax / simple.pl
1 #! /usr/bin/perl
2 use XML::TemplateSAX;
3
4 my $doc = XML::TemplateSAX::process_file('../xml/simple.xml', {
5         'title' => 'A very basic example',
6         '#hello' => 'Hello world!'
7 });
8 print $doc;