open(DBASE, $path."database.txt") || die ("File does not exist, $!\n"); while() { chomp; print (LIST "\nTIME: ".localtime(time)."\n"); print (LIST "$_\n\n"); open (XFILE, $_) || die ("Can\'t open[$_], $!\n"); while() { chomp; if($_ =~ /\/../\<\/name\>/) { print (LIST "$_\n"); } elsif($_ =~ /\/../\<\/keywords\>/) { print (LIST "$_\n"); } elsif($_ =~ /\/../\<\/description\>/) { print (LIST "$_\n"); } elsif($_ =~ /\/../\<\/results\>/) { print (LIST "$_\n"); } }close XFILE; } close LIST; close DBASE;