perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Dynamic URI query strings
Date Wed, 07 Jun 2000 13:27:28 GMT
> 
> my $uriprefix = '/investment/detail.epl?code=FOO&display=WOTSIT&it=BAR';
> my $uri = URI->new($uriprefix);
> $uriprefix = $uri->query();
> my $q = CGI->new($uriprefix);
> $q->param('code', '007');
> $q->param('new', 'YES');
> $uriprefix = $uri->path . '?' . $q->query_string;
> print $uriprefix, "\n";
> 

Why don't you simply append to the string? Am I missing something?


my $uriprefix = '/investment/detail.epl?code=FOO&display=WOTSIT&it=BAR';
$uriprefix .= '&code=007&new=YES';
print $uriprefix, "\n";

Gerald


Mime
View raw message