fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kio / useragent.pl
blobf31e31e1d148cf7b8bba7ac7ce4bf93a5fa39762
1 #!/usr/bin/perl
2 # the script is called with interpreter, so don't worry about the path
4 while(<>)
6 if (($key, $domain, $useragent, $comment) = ($_ =~ /(Entry\d)=\.?([^:]+)::([^:]+)::([^\n]+)/))
8 printf ("[%s]\n", $domain);
9 printf ("UserAgent=%s\n", $useragent);
10 printf ("# DELETE %s\n", $key);
13 printf ("# DELETE EntriesCount\n");