<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- WebService-FreeDB-0.77-dIV5tr/FreeDB.pm~	2006-09-06 06:11:38.000000000 -0500
+++ WebService-FreeDB-0.77-dIV5tr/FreeDB.pm	2011-09-28 10:17:20.000000000 -0500
@@ -198,6 +198,7 @@
 		#ignore until begin of data
 		while (!($line =~ /^&lt;table width="100%" border="0" cellspacing="1" cellpadding="8" bgcolor="#FFFFFF"&gt;&lt;tr&gt;&lt;td&gt;$/)) {
 			$line = shift(@lines);
+		  last unless $line;
 		}
 		if (defined $self-&gt;{ARG}-&gt;{DEBUG} &amp;&amp; $self-&gt;{ARG}-&gt;{DEBUG} &gt;= 2) {
 			print STDERR "**found start of data :$line;\n"; 
@@ -213,6 +214,7 @@
 		#ignore commercials
 		while (!($lines[1] =~ /^\s*tracks:\s*?(\d+)&lt;br&gt;$/)) {
 			shift(@lines);
+			last unless @lines;
 		}
 
 		if ($lines[1] =~ /^\s*tracks:\s*?(\d+)&lt;br&gt;$/) {
@@ -253,6 +255,7 @@
 				while (!($line =~ /&lt;\/pre&gt;&lt;\/tr&gt;&lt;\/td&gt;&lt;\/table&gt;&lt;\/center&gt;/)) {
 					$disc{rest} .= $line."\n";
 					$line = shift(@lines);
+					last unless $line;
 				}
 			}
 			$line = shift(@lines);
</pre></body></html>