Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 28
Status: resolved
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: siracusa [...] mindspring.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 1.22



MIME-Version: 1.0
X-Mailer: MIME-tools 5.405 (Entity 5.404)
Subject: Changing query params is unnecessarily cumbersome
Content-Type: multipart/mixed; boundary="----------=_1005275372-663-3"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 395
Download (untitled) / with headers
text/plain 395b
Changing the value of a query param should be easier than this: $uri = URI->new('http://foo.com/goo?a=1&b=2&c=3'); %query = $uri->query_form; $query{'a'} = 99; $uri->query_form(%query_form); Please let me do something like this: $uri = URI->new('http://foo.com/goo?a=1&b=2&c=3'); $uri->query_param(a => 99); and this: print $uri->query_param('b'); # prints 2
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.