projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
81946b5
)
DTRT with $line1 inside empty datafield catch
author
Shawn Boyette
<sboyette@esilibrary.com>
Wed, 17 Sep 2008 22:09:41 +0000 (22:09 +0000)
committer
Shawn Boyette
<sboyette@esilibrary.com>
Wed, 17 Sep 2008 22:09:41 +0000 (22:09 +0000)
yaz-cleanup
patch
|
blob
|
history
diff --git
a/yaz-cleanup
b/yaz-cleanup
index
3576735
..
9942994
100755
(executable)
--- a/
yaz-cleanup
+++ b/
yaz-cleanup
@@
-8,7
+8,7
@@
$line1 = <MARC>;
while ($line2 = <MARC>) {
if ($line1 =~ m/<datafield tag="..." ind1=" " ind2=" ">/) {
if ($line2 =~ m|</datafield>|) {
- $line1 = $line2;
+ $line1 = <MARC>>;
next;
}
}