Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: XML::Twig-parse() error under CGI

by rpc (Monk)
on May 24, 2001 at 22:29 UTC ( [id://83049]=note: print w/replies, xml ) Need Help??


in reply to XML::Twig-parse() error under CGI

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

Replies are listed 'Best First'.
Re: Re: XML::Twig-parse() error under CGI
by DrSax (Sexton) on May 24, 2001 at 22:54 UTC
    rpc,
    Thanks for the input. I tried putting it in its own block with no strict qw(refs), and it made no difference. I am not running under mod_perl.I will send a msg to mirod and see if he has anything to say about it. In the meantime I will register my own $SIG{__DIE__} handler and see if that fixes it.
    Thanks for the assist!
    DrSax

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://83049]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-28 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found