[Catalyst] Re: Handy shotcuts

Aristotle Pagaltzis pagaltzis at gmx.de
Thu Mar 20 16:56:14 GMT 2008


* Matt Lawrence <matt.lawrence at ymogen.net> [2008-03-20 16:50]:
> It would be cleaner, but less concise, to use a hash-like
> configuration:
>
> # Temporary redirect to /my/action/1/2/3?q=search%20string
> $c->uri_redirect({
>    action => '/my/action',
>    args => [qw( 1 2 3 )],
>    status => 307,
>    query => { q => "search string" },
>    # detach => 1 ??
> });

That is so wordy I don’t know what the point is compared to doing
it the conventional way.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list