--- loncom/xml/run.pm 2003/10/01 21:34:53 1.41
+++ loncom/xml/run.pm 2003/11/09 01:17:35 1.42
@@ -1,6 +1,6 @@
package Apache::run;
#
-# $Id: run.pm,v 1.41 2003/10/01 21:34:53 albertel Exp $
+# $Id: run.pm,v 1.42 2003/11/09 01:17:35 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -120,29 +120,29 @@ sub run {
}
sub dump {
- my ($target,$safeeval)=@_;
- my $dump='';
- foreach my $symname (sort keys %{$safeeval->varglob('main::')}) {
- if (($symname!~/^\_/) && ($symname!~/\:$/)) {
- my $line;
- if ($safeeval->reval('defined($'.$symname.')')) {
- $line='$'.$symname.'='.$safeeval->reval('$'.$symname);
- }
- if ($safeeval->reval('defined(@'.$symname.')')) {
- $line='@'.$symname.'=('.
- $safeeval->reval('join(",",@'.$symname.')').")";
- }
- if ($safeeval->reval('defined(%'.$symname.')')) {
- $line='%'.$symname.'=(';
- $line.=$safeeval->reval('join(",",map { $_."=>".$'.
- $symname.'{$_} } sort keys %'.
- $symname.')').")"
- }
- if ($line ne '') { $dump.=&HTML::Entities::encode($line)."
"; }
+ my ($target,$safeeval)=@_;
+ my $dump='';
+ foreach my $symname (sort keys %{$safeeval->varglob('main::')}) {
+ if (($symname!~/^\_/) && ($symname!~/\:$/)) {
+ my $line;
+ if ($safeeval->reval('defined($'.$symname.')')) {
+ $line='$'.$symname.'='.$safeeval->reval('$'.$symname);
+ }
+ if ($safeeval->reval('defined(@'.$symname.')')) {
+ $line='@'.$symname.'=('.
+ $safeeval->reval('join(",",@'.$symname.')').")";
+ }
+ if ($safeeval->reval('defined(%'.$symname.')')) {
+ $line='%'.$symname.'=(';
+ $line.=$safeeval->reval('join(",",map { $_."=>".$'.
+ $symname.'{$_} } sort keys %'.
+ $symname.')').")"
+ }
+ if ($line ne '') {$dump.=&HTML::Entities::encode($line)."
";}
+ }
}
- }
- $dump.='';
- return $dump;
+ $dump.='';
+ return $dump;
}
1;