in reply to Catch XML error
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Catch XML error
by kyle (Abbot) on Jul 13, 2007 at 23:31 UTC |