DESCEND: while (@path) {
$path = join '/', @path;
- $path =~ s#^/##;
-
- $path = '' if $path eq '/'; # Root action
+ $path =~ s#^/+##;
# Check out dispatch types to see if any will handle the path at
# this level
}
return reverse grep { defined } @containers, $self->_container_hash->{''};
-
- #return (split '/', $namespace); # isnt this more clear?
- my @parts = split '/', $namespace;
}
=head2 $self->uri_for_action($action, \@captures)
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;