X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fdmoz%2Fcon1.pl;h=906eb275a33f5bdbdc129efdb4f5a9e7beec62c4;hb=250de4ed23a44f5eb3552db317eef0d0fbe3265c;hp=d2591c30b91bcb0a9ef79b80301d60516feb90d7;hpb=9ca612132e1ef66f43d61e5cefa854ba18c6e1a6;p=idzebra-moved-to-github.git diff --git a/test/dmoz/con1.pl b/test/dmoz/con1.pl index d2591c3..906eb27 100755 --- a/test/dmoz/con1.pl +++ b/test/dmoz/con1.pl @@ -2,7 +2,7 @@ my $state = 'init'; my $topic = ''; -my $title; +my $title = ''; my $description; while ($_ = ) { @@ -19,11 +19,14 @@ while ($_ = ) { $description = $1; } elsif (/<\/ExternalPage>/) { - print "\n"; - print " $title\n"; - print " $description\n"; - print " $url\n"; - print " $topic\n"; - print "\n"; + if (length($title) > 0) + { + print "\n"; + print " $title\n"; + print " $description\n"; + print " $url\n"; + print " $topic\n"; + print "\n"; + } } }