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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 07 May 2004 17:17:51 -0000


albertel		Fri May  7 13:17:51 2004 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - sort keys, that way the string is consistant
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.494 loncom/lonnet/perl/lonnet.pm:1.495
--- loncom/lonnet/perl/lonnet.pm:1.494	Fri May  7 08:03:53 2004
+++ loncom/lonnet/perl/lonnet.pm	Fri May  7 13:17:50 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.494 2004/05/07 12:03:53 albertel Exp $
+# $Id: lonnet.pm,v 1.495 2004/05/07 17:17:50 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1816,7 +1816,7 @@
 sub hashref2str {
   my ($hashref)=@_;
   my $result='__HASH_REF__';
-  foreach (keys(%$hashref)) {
+  foreach (sort(keys(%$hashref))) {
     if (ref($_) eq 'ARRAY') {
       $result.=&arrayref2str($_).'=';
     } elsif (ref($_) eq 'HASH') {