Make sax_parser_print provide more obvious feedback.
[wip/koha-chris_n.git] / misc / sax_parser_print.pl
1 #!/usr/bin/perl
2 # check the current SAX Parser
3 use XML::SAX::ParserFactory;
4 $parser = XML::SAX::ParserFactory->parser();
5 print "Koha wants something like:
6     XML::LibXML::SAX::Parser=HASH(0x81fe220)
7 You have:
8     $parser\n";
9 print "Looks " .
10     ($parser =~ /^XML::LibXML::SAX::Parser=HASH/ ?
11     "good.\n" : "bad, check INSTALL.* documentation.\n");