[Catalyst] Re: uri_for() corrupts query parameters hash for caller

Aristotle Pagaltzis pagaltzis at gmx.de
Tue Jun 30 05:29:02 GMT 2009

* Tomas Doran <bobtfish at bobtfish.net> [2009-06-30 02:35]:
> If your application code half iterates through the params hash
> with each before calling uri_for, then the param copy would
> only copy the second half of the hash (as each has an internal
> iterator).

FWIW you can reset the iterator using `keys`, which is cheap to
call in void or scalar context too.

Aristotle Pagaltzis // <http://plasmasturm.org/>

More information about the Catalyst mailing list