Re: path recognition question

John Dunlap <[email protected]> Thu, 21 Apr 2022 10:27:27 -0400
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC5eUSsWe+eTzngK+Eq3g0VNbrce_0ymY++GiQyJ2G6TUhvt0w@mail.gmail.com>
I sent this 8 years ago but, at the time, no one was interested.
[image: image.png]


On Thu, Apr 21, 2022 at 9:40 AM John Dunlap <[email protected]> wrote:

> I ended up writing something custom to do that.
>
> On Wed, Apr 20, 2022 at 11:22 PM Henrik S <[email protected]>
> wrote:
>
>> given the sample url:
>>
>> /api/user/id
>>
>> the part of "/api/user" is fixed.  and there is a handler setup for this
>> path.
>>
>> how to get the id part in mod_perl?
>>
>> in other framework I could get it with the similar format:
>>
>> /api/user/:id
>>
>> puts "hallo #{id}"
>>
>>
>> Thank you.
>>
>
>
> --
> John Dunlap
> *CTO | Lariat *
>
> *Direct:*
> *[email protected] <[email protected]>*
>
> *Customer Service:*
> 877.268.6667
> [email protected]
>


-- 
John Dunlap
*CTO | Lariat *

*Direct:*
*[email protected] <[email protected]>*

*Customer Service:*
877.268.6667
[email protected]
100x60.png (image/png, 2.1 KB) - not displayed
image.png (image/png, 87.8 KB) - not displayed