Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.1172.2.104 and 1.1172.2.105

version 1.1172.2.104, 2019/02/15 21:34:43 version 1.1172.2.105, 2019/02/18 15:19:30
Line 12802  sub get_dns { Line 12802  sub get_dns {
  &$func(\@content,$hashref);   &$func(\@content,$hashref);
  return;   return;
     }      }
     close($config);  
     my $which = (split('/',$url))[3];      my $which = (split('/',$url))[3];
     &logthis("unable to contact DNS defaulting to on disk file dns_$which.tab\n");      &logthis("unable to contact DNS defaulting to on disk file dns_$which.tab\n");
     open($config,"<","$perlvar{'lonTabDir'}/dns_$which.tab");      if (open(my $config,"<","$perlvar{'lonTabDir'}/dns_$which.tab")) {
     my @content = <$config>;          my @content = <$config>;
     &$func(\@content,$hashref);          &$func(\@content,$hashref);
       }
     return;      return;
 }  }
   

Removed from v.1.1172.2.104  
changed lines
  Added in v.1.1172.2.105


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>