LibXML + parse_file + exception in eval
- Hi ppl,
my $parser = XML::LibXML->new();
my $tree = $parser->parse_file("dummy.xml");
die "Error: $@ \n";
die "Success \n";
my $x = a();
print "FOUND THE PROBLEM\n";
Here dummy.xml is an invalid xml file. If I execute the above code from my home directory, I am able to see the output as expected but, if I execute the same in mod-perl environment, exception raised by parse_file are also printed to command prompt, though they are in eval block.
So I wanted to know though we keep some stuff in eval block exceptions exceptions be raised? if so , how to stop it.
Send instant messages to your online friends http://uk.messenger.yahoo.com
[Non-text portions of this message have been removed]