[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Mon, 14 May 2007 08:47:55 -0000


albertel		Mon May 14 04:47:55 2007 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - cleanup some startup warnings
  
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.873 loncom/lonnet/perl/lonnet.pm:1.874
--- loncom/lonnet/perl/lonnet.pm:1.873	Thu May 10 21:48:19 2007
+++ loncom/lonnet/perl/lonnet.pm	Mon May 14 04:47:54 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.873 2007/05/11 01:48:19 raeburn Exp $
+# $Id: lonnet.pm,v 1.874 2007/05/14 08:47:54 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -744,7 +744,7 @@
         if (defined(&domain($udom,'primary'))) {
             $uhome=&domain($udom,'primary');
         } else {
-            $uhome eq '';
+            undef($uhome);
         }
     } else {
         if (!$uhome) {
@@ -763,7 +763,6 @@
         if ( $#pairs==0 && $pairs[0] =~ /^(con_lost|error|no_such_host)/i) {
             return @pairs;
         }
-        my %returnhash=();
         my $i=0;
         foreach my $item (@$storearr) {
             $returnhash{$item}=&thaw_unescape($pairs[$i]);
@@ -784,7 +783,7 @@
         if (defined(&domain($udom,'primary'))) {
             $uhome=&domain($udom,'primary');
         } else {
-            $uhome eq '';
+            undef($uhome);
         }
     } else {
         if (!$uhome) {