minor change
Rafael Kitover [Sat, 20 Jun 2009 00:19:18 +0000 (00:19 +0000)]
lib/Catalyst/Dispatcher.pm

index cb22e63..08a4248 100644 (file)
@@ -535,7 +535,7 @@ sub register {
     my @normal_dtypes;
     my @low_precedence_dtypes;
 
-    while (my $type = shift @dtypes) {
+    for my $type ( @dtypes ) {
         if ($type->isa('Catalyst::DispatchType::Index') ||  
             $type->isa('Catalyst::DispatchType::Default')) {
             push @low_precedence_dtypes, $type;