[LON-CAPA-cvs] cvs: loncom /xml run.pm
raeburn
raeburn at source.lon-capa.org
Mon Dec 15 12:45:16 EST 2014
raeburn Mon Dec 15 17:45:16 2014 EDT
Modified files:
/loncom/xml run.pm
Log:
- Coding style: keys(), sort()
Index: loncom/xml/run.pm
diff -u loncom/xml/run.pm:1.62 loncom/xml/run.pm:1.63
--- loncom/xml/run.pm:1.62 Wed Dec 4 15:57:15 2013
+++ loncom/xml/run.pm Mon Dec 15 17:45:16 2014
@@ -1,6 +1,6 @@
package Apache::run;
#
-# $Id: run.pm,v 1.62 2013/12/04 15:57:15 bisitz Exp $
+# $Id: run.pm,v 1.63 2014/12/15 17:45:16 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -163,7 +163,7 @@
sub dump {
my ($target,$safeeval)=@_;
my $dump='';
- foreach my $symname (sort keys %{$safeeval->varglob('main::')}) {
+ foreach my $symname (sort(keys(%{$safeeval->varglob('main::')}))) {
if (($symname!~ /^(INC|SIG)/) && ($symname!~/\027/) &&
($symname!~/^\_/) && ($symname!~/\:$/)) {
my $line;
@@ -179,8 +179,8 @@
if ($safeeval->reval('%'.$symname)) {
$line.='%'.$symname.'=(';
$line.=$safeeval->reval('join(",",map { $_."=>".$'.
- $symname.'{$_} } sort keys %'.
- $symname.')').")"."\n";
+ $symname.'{$_} } sort(keys(%'.
+ $symname.')))').")"."\n";
}
if ($line ne '') {
$line=&HTML::Entities::encode($line,'<>&"');
More information about the LON-CAPA-cvs
mailing list