I would use path_info.
See Apache2::RequestRec manual page.

Regards,
Jacques

On 2022/04/21 12:21, Henrik S 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.

Attachment: OpenPGP_0x5F3C0261CDB2E752.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to