Store-Digest

 view release on metacpan or  search on metacpan

lib/Store/Digest/HTTP.pm  view on Meta::CPAN

    my $query  = $uri->query_form_hash;
    my $base   = $self->base;

    # first we should clip off the prefix(es)

    $path =~ s!^$base!!;
    $path =~ s!^/*!!;

    #warn $path;

    my @segments = split m!/+!, $path, -1;

    #warn join('/', @segments);

    # here's the all-important resource type
    my $type;

    if (@segments == 0) {
        # root
        $type = 'stats';
    }



( run in 1.362 second using v1.01-cache-2.11-cpan-71847e10f99 )