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

raeburn raeburn at source.lon-capa.org
Sun Mar 9 11:39:05 EDT 2014


raeburn		Sun Mar  9 15:39:05 2014 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Coding style: split()
  - thaw_unescape() is a subroutine within lonnet.pm  
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1251 loncom/lonnet/perl/lonnet.pm:1.1252
--- loncom/lonnet/perl/lonnet.pm:1.1251	Mon Feb 24 03:04:58 2014
+++ loncom/lonnet/perl/lonnet.pm	Sun Mar  9 15:39:04 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1251 2014/02/24 03:04:58 raeburn Exp $
+# $Id: lonnet.pm,v 1.1252 2014/03/09 15:39:04 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5545,11 +5545,11 @@
     return {} if $rep =~ /^error/;
 
     my %returnhash=();
-	foreach my $item (split /\&/, $rep) {
+	foreach my $item (split(/\&/,$rep)) {
 	    my ($key, $value) = split(/=/, $item, 2);
 	    $key = unescape($key) unless $escapedkeys;
 	    next if $key =~ /^error: 2 /;
-	    $returnhash{$key} = Apache::lonnet::thaw_unescape($value);
+	    $returnhash{$key} = &thaw_unescape($value);
 	}
     #return %returnhash;
     return \%returnhash;




More information about the LON-CAPA-cvs mailing list