in reply to Question about URL query strings

It works, so you're doing something squirrelly or flattening it accidentally. Show us teh codez!

perl -MURI -MData::Dump=pp -le 'pp(URI->new("/?foo=Zoo&foo=aha")->quer +y_form)' ("foo", "Zoo", "foo", "aha")

Replies are listed 'Best First'.
Re^2: Question about URL query strings
by frodo2014 (Initiate) on Feb 17, 2014 at 23:17 UTC
    #!/usr/bin/perl use 5.014; use strict; use warnings; use autodie; use Data::Dumper; use URI; my $info = "/?foo=Zoo&foo=aha"; my $uri = URI->new($info); my %query = $uri->query_form; print Dumper \%query;