X-Git-Url: https://code.th-h.de/?p=usenet%2Fnewsstats.git;a=blobdiff_plain;f=gatherstats.pl;h=0a5a9a24137a85947bf652c3dbc7d00087c498c3;hp=b570cd821fdefacb81c436071db1716ce7907755;hb=314e31aadfdadd37adb5723e7fad672e961699d9;hpb=880c3eb2270c235048aedfa6becfc0bc0e7b8ed8 diff --git a/gatherstats.pl b/gatherstats.pl index b570cd8..0a5a9a2 100755 --- a/gatherstats.pl +++ b/gatherstats.pl @@ -78,19 +78,25 @@ my $TLH; if ($Conf{'TLH'}) { # $Conf{'TLH'} is parsed as an array by Config::Auto; # make a flat list again, separated by : - if (ref($TLH) eq 'ARRAY') { + if (ref($Conf{'TLH'}) eq 'ARRAY') { $TLH = join(':',@{$Conf{'TLH'}}); } else { $TLH = $Conf{'TLH'}; } # strip whitespace $TLH =~ s/\s//g; + # add trailing dots if none are present yet + # (using negative look-behind assertions) + $TLH =~ s/(?