in reply to Re: Pass arguments in URL
in thread Pass arguments in URL
The URI accessors do not support chaining.use URI; use strict; use warnings; my $hostname = 'localhost'; my $path = '/cgi-bin/details'; my $period = 4; my $vid = 11; my $person = 'abcdef'; my @args = ( period => $period, vid => $vid, person => $person ); my $url = URI->new("http://$hostname/"); $url->path($path); $url->query_form( \@args ); print $url->canonical;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pass arguments in URL
by ikegami (Patriarch) on Aug 23, 2010 at 19:24 UTC |