in reply to mod_rewrite + CGI.pm in "reverse"?

Why not just drive your script from pathinfo? Then you can parse the "trailing part" of the path as you wish, including making it look like a nested directory.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.