perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Wessels <swess...@usgn.net>
Subject PerlSections and Tie::DxHash issue
Date Tue, 04 Oct 2005 23:33:00 GMT
In attempting to implement a complete PerlSections apache configuration, 
I ran into a problem when trying to use multiple 
RewriteCond/RewriteRules and Tie::DxHash 
(http://search.cpan.org/~kruscoe/Tie-DxHash-0.93/lib/Tie/DxHash.pm) in a 
$VirtualHost. When using Apache2::PerlSections->dump, the configuration 
would print out in the correct order, but when the configuration was 
passed off to Apache the ordering was lost. The following patches 
resolves the issue.

--- PerlSections.pm        2005-10-04 15:42:00.000000000 -0700
+++ PerlSections.pm.no_sort_keys        2005-10-04 15:41:34.000000000 -0700
@@ -129,7 +129,7 @@
 sub dump_hash {
     my($self, $name, $hash) = @_;

-    for my $entry (sort keys %{ $hash || {} }) {
+    for my $entry (keys %{ $hash || {} }) {
         my $item = $hash->{$entry};
         my $type = ref($item);

@@ -149,7 +149,7 @@

     $self->add_config("<$name $loc>\n");

-    for my $entry (sort keys %{ $hash || {} }) {
+    for my $entry (keys %{ $hash || {} }) {
         $self->dump_entry($entry, $hash->{$entry});
     }





-- 
Scott Wessels
CTO
US Global Net
Cell: (480) 330 4084
Office: (602) 745 2498


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message