DTRT with $line1 inside empty datafield catch
authorShawn Boyette <sboyette@esilibrary.com>
Wed, 17 Sep 2008 22:09:41 +0000 (22:09 +0000)
committerShawn Boyette <sboyette@esilibrary.com>
Wed, 17 Sep 2008 22:09:41 +0000 (22:09 +0000)
yaz-cleanup

index 3576735..9942994 100755 (executable)
@@ -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;
         }
     }