in reply to eval not catching XML Parser die
Sorry, my debugging / problem searching ability seems to have deserted me on this one.
the base problem can be isolated on a much simpler script
It segfaults on linux under 5.6.1
It doesnt segfault on Solaris with perl 5.00503
where all the xml file has to contain isuse strict; use XML::Simple; for ('./news-arabic-business.xml') { my $xmlfile = $_; my $struct; my $parser = new XML::Simple( forcearray => 1 ); eval { $struct = $parser->XMLin( $xmlfile ); die "wibble " unless ref $struct eq 'HASH'; }; if ($@) { print "$@ \n"; next; }; }
< ?xml version="1.0" encoding="Windows-1256"? >
on Solaris the modules are older versions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: eval not catching XML Parser die
by grantm (Parson) on Jun 24, 2002 at 15:50 UTC |