On Thu Dec 20 08:07:25 2012, CYBAEA wrote:
Show quoted text> URI::QueryParam does not handle a single, value-less parameter but
> returns the empty list:
>
> perl -E 'use URI; use URI::QueryParam;
> my $uri = URI->new("
http://johnsmith.s3.amazonaws.com/?acl");
> say join "/", $uri->query_param();'
You didn't provide a URL with a single value-less parameter. If you did, it would have worked.
$ perl -MURI -E'say URI->new("
http://foo/?acl=")->query_form();'
acl
$ perl -MURI -MURI::QueryParam -E'say for URI->new("
http://foo/?acl=")->query_param();'
acl
What you have is akin to an isindex query.
$ perl -MURI -E'say URI->new("
http://foo/?acl")->query_keywords();'
acl