Fixing up a regexp to stop a trivial warn

This commit is contained in:
Chris Nighswonger 2010-11-04 14:14:10 -04:00
parent 414b2ace4f
commit 374cdb2678
1 changed files with 4 additions and 3 deletions

View File

@ -206,9 +206,10 @@ RECORD: while ( ) {
}
} else {
if (my $f020 = $record->field('020')) {
$isbn = $f020->subfield('a');
$isbn =~ s/-//g;
$f020->update('a' => $isbn);
if ($isbn = $f020->subfield('a')) {
$isbn =~ s/-//g;
$f020->update('a' => $isbn);
}
}
}
}