[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 21 Mar 2002 20:24:21 -0000
albertel Thu Mar 21 15:24:21 2002 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
- defined(@{ 'not a ref' }) blows up on perl version 5.005
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.26 loncom/interface/loncommon.pm:1.27
--- loncom/interface/loncommon.pm:1.26 Wed Mar 6 15:24:44 2002
+++ loncom/interface/loncommon.pm Thu Mar 21 15:24:21 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.26 2002/03/06 20:24:44 matthew Exp $
+# $Id: loncommon.pm,v 1.27 2002/03/21 20:24:21 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -393,7 +393,7 @@
sub add_to_env {
my ($name,$value)=@_;
if ($ENV{$name}) {
- if (defined(@{ $ENV{$name} })) {
+ if (ref($ENV{$name})) {
#already have multiple values
push(@{ $ENV{$name} },$value);
} else {