--- loncom/lonnet/perl/lonnet.pm 2006/10/17 05:56:46 1.794 +++ loncom/lonnet/perl/lonnet.pm 2006/10/18 02:39:12 1.796 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.794 2006/10/17 05:56:46 albertel Exp $ +# $Id: lonnet.pm,v 1.796 2006/10/18 02:39:12 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -413,17 +413,6 @@ sub delenv { return 'ok'; } -=pod - -=item * get_env_multiple($name) - -gets $name from the %env hash, it seemlessly handles the cases where multiple -values may be defined and end up as an array ref. - -returns an array of values - -=cut - sub get_env_multiple { my ($name) = @_; my @values; @@ -4277,9 +4266,9 @@ sub auto_instcode_defaults { foreach my $pair (split(/\&/,$response)) { my ($name,$value)=split(/\=/,$pair); if ($name eq 'code_order') { - $code_order = [split(/\&/,&unescape($value))]; + @{$code_order} = split(/\&/,&unescape($value)); } else { - $$returnhash{&unescape($name)}=&unescape($value); + $returnhash->{&unescape($name)}=&unescape($value); } } } @@ -7554,6 +7543,13 @@ B: removes all items fr environment file that matches the regular expression in $regexp. The values are also delted from the current processes %env. +=item * get_env_multiple($name) + +gets $name from the %env hash, it seemlessly handles the cases where multiple +values may be defined and end up as an array ref. + +returns an array of values + =back =head2 User Information