Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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

by rpc (Monk)
on May 24, 2001 at 22:29 UTC ( #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, 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.


Replies are listed 'Best First'.
Re: Re: XML::Twig-parse() error under CGI
by DrSax (Sexton) on May 24, 2001 at 22:54 UTC
    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!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-02-04 01:38 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (30 votes). Check out past polls.