metaperl has asked for the wisdom of the Perl Monks concerning the following question:

Hello, is there a module which forms a URL from an API call or data structure? I would like something like this:
URLMaker->new('admin.cgi', q => { action => 'this', arg2 => 'that' } )->stringify;

Replies are listed 'Best First'.
Re: Forming a URL from a data structure/API?
by Fletch (Bishop) on Feb 03, 2009 at 16:14 UTC

    Like perhaps URI?

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re: Forming a URL from a data structure/API?
by Your Mother (Archbishop) on Feb 03, 2009 at 17:36 UTC

    I have zero experience with it but it seems like MojoX::Routes and perhaps other parts of Mojo might be what you're after. Catalyst does this too but it's not something that could be standalone and it's one of the only parts of the kit which I think isn't implemented well anyway.