A friend of mine experienced this same problem. The error is generated within an eval in Expat.pm, while the module is trying to figure out what kind of data you passed it. Do you have a $SIG{__DIE__} handler set up that isn't checking to see if the die was generated by eval? Or, are you running under mod_perl?
I'm not sure if it will work, but you might try putting Twig->parse() in its own block, with all warnings turned off. If this doesn't work, maybe you can register your own $SIG{__DIE__} handler (if you aren't already, but something else is) that checks $^S.
hth,
--rpc
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|