Your skill will accomplish what the force of many cannot |
|
PerlMonks |
eval not catching XML Parser dieby agoth (Chaplain) |
on Jun 24, 2002 at 10:42 UTC ( [id://176733]=perlquestion: print w/replies, xml ) | Need Help?? |
agoth has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
The script below combines an XML Parse of a number of files in a directory, extracting the contents and inserting into a mysql database.
Whats happening is when an unrecognised encoding comes in XML::Parser bombs out as expected. The rest of the files are processed fine, the db inserts work, and the script ends with a nice messy segfault, though no core dump. Am I not handling my die's correctly or is it something else ? I've currently 'handled' it by using LibXML instead!! XML::Simple ( 1.08 ) Perl (5.6.1) XML::Parser (2.30) DBI (1.14), and DBD::mysql (2.0419).
Back to
Seekers of Perl Wisdom
|
|