Pretty cool module, this is my first look at it.  I did something
similar awhile back for a project using REST.  I wish this module was
around when I did it :).

Just to give you an idea, I ended up using regular expressions instead
of literal string comparisons.  You could do both just use something
else for regex "table_regexp".   I did something like this(trying to
use your syntax):

my($module,$rm);
my $path = $ENV{'path_info'};
foreach my $t (keys %{$table_regexp}) {
    if((@args) = ($path =~ /$t->{path}/)) {
        $module = $rmodes->{$t->{app}};
        $rm = $r->{rm}
        last;
    }
}
$self->require_module($module);
$module->$rm(@args);

If you're interested maybe I'll hack up a patch.

--
Jason Yates
[EMAIL PROTECTED]

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to