[LON-CAPA-cvs] cvs: loncom /xml run.pm

raeburn raeburn at source.lon-capa.org
Sun Nov 10 15:40:59 EST 2019


raeburn		Sun Nov 10 20:40:59 2019 EDT

  Modified files:              
    /loncom/xml	run.pm 
  Log:
  - Suppress "Use of uninitialized value" (Config.pm line 62) warnings in logs 
    from reval of perl special hash: %!, in call to &Apache::run::dump()  
    when creating ScriptVars display for answer target.
  
  
Index: loncom/xml/run.pm
diff -u loncom/xml/run.pm:1.64 loncom/xml/run.pm:1.65
--- loncom/xml/run.pm:1.64	Tue Jun 23 02:52:20 2015
+++ loncom/xml/run.pm	Sun Nov 10 20:40:59 2019
@@ -1,6 +1,6 @@
 package Apache::run;
 #
-# $Id: run.pm,v 1.64 2015/06/23 02:52:20 raeburn Exp $
+# $Id: run.pm,v 1.65 2019/11/10 20:40:59 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -165,7 +165,7 @@
     my $dump='';
     foreach my $symname (sort(keys(%{$safeeval->varglob('main::')}))) {
 	if (($symname!~ /^(INC|SIG)/) && ($symname!~/\027/) && ($symname!~/\022/) && 
-	    ($symname!~/^\_/) && ($symname!~/\:$/)) {
+	    ($symname!~/^\_/) && ($symname!~/\:$/) && ($symname ne '!')) {
 	    my $line;
 	    if ($safeeval->reval('defined($'.$symname.')')) {
 		if ($symname =~ /^\w/) {




More information about the LON-CAPA-cvs mailing list