my $value; eval { $value = $record1->getAttribute('value1'); }; next FILE if ( $@ );
Note the scope. Define the variable outside the eval, or you'll only be able to use it in the block.
Phil
In reply to Re: Catch XML error
by philcrow
in thread Catch XML error
by ecuguru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |