in reply to XML::Checker::Parser

That would be Handlers => [ Unparsed => \&my_Unparsed_handler ] should be Handlers => { Unparsed => \&my_Unparsed_handler }. Note the { ... } instead of [ ... ]: the Handlers parameter should be a hash ref, not an array ref (hence the error message when Perl tries to force an arry into a hash).

Replies are listed 'Best First'.
Re: Re: XML::Checker::Parser
by rubric (Initiate) on Nov 25, 2002 at 10:00 UTC
    Thanks. That does make a difference. That is an error in the example code of XML::Checker::Parser.

      You should send at least a bug report, and even better a doc patch to the maintainer then (that's T.J. Mather, the current revision is 0.13, not the first one that shows up on search.capn.org).

        I sent the report along with the corrected example code to T.J. Thanks.