File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ sub reduce_domains {
114114my  $hashref  = shift  or  return ;
115115my  $redundant_domains_hashref ;
116116
117- while  ( my  (  $domain ,  undef  )  = each  %$hashref  ) {
117+ while  ( my  $domain  = each  %$hashref  ) {
118118my  @domain_leaves  = reverse ( split  /\./, $domain  );
119119my  $index  = 1;
120120
@@ -139,7 +139,9 @@ sub unique_domains {
139139my  %unique_domains ;
140140
141141PROCESS_LINE: while  ( <<>>   ) {
142- ## Don't process commented or blank lines. 
142+ chomp; 
143+ 
144+ # Don't process commented or blank lines. 
143145next if /\A  \s *? \# /aaxx; 
144146next if /\A  \s * \z /aaxx; 
145147
@@ -164,7 +166,6 @@ PROCESS_LINE: while ( <<>> ) {
164166
165167# Lowercase vs uppercase doesn't matter for DNS. 
166168$_  = lc $_ ;
167- chomp; 
168169
169170my $domain  = do { 
170171is_domain $_  or next PROCESS_LINE; 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments