--- loncom/xml/style.pm 2001/01/16 20:52:31 1.9 +++ loncom/xml/style.pm 2001/03/26 17:32:30 1.10 @@ -75,9 +75,9 @@ sub styleparser { my %style_for_target = @style_array; # check printing - while (($current_key,$current_value) = each %style_for_target) { - &Apache::lonxml::debug("$current_key => $current_value\n"); - } + foreach $current_key (sort keys %style_for_target) { + &Apache::lonxml::debug("$current_key => $style_for_target{$current_key}\n"); + } # return result return %style_for_target;