[cgiapp] Re: Stuck with Dispatch

Mark Stosberg mark at summersault.com
Mon Dec 29 19:05:09 EST 2008


On Mon, 29 Dec 2008 08:58:56 -0600
"Jason A. Crome" <cromedome at gmail.com> wrote:

> Hi all,
> 
> I'm working on my IIS subclass for CA::Dispatch, and am stuck for
> reasons I am unsure of.

Jason,

Have you tried something like this?

sub _parse_path {
    my ($self, $path, $table) = @_;
 
    # get the module name from the table
    return unless defined($path);

    # Strip the script name from the start of the URL
    $path =~ s|(/[^/]+)||;

    return $self->SUPER::_parse_path($path,$table);

}

    Mark




More information about the cgiapp mailing list