Return-Path: Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 49274 invoked from network); 7 Jun 2000 13:26:16 -0000 Received: from rt-h1.ecos.de (195.52.11.3) by locus.apache.org with SMTP; 7 Jun 2000 13:26:16 -0000 Received: from mond (unknown [194.162.213.51]) by rt-h1.ecos.de (Postfix) with SMTP id 7AFE21AF075; Wed, 7 Jun 2000 15:25:21 +0200 (MEST) From: "Gerald Richter" To: "Leon Brocard" , Subject: RE: Dynamic URI query strings Date: Wed, 7 Jun 2000 15:27:28 +0200 Message-ID: <003701bfd084$20841210$0b0b0b0a@i.ecos.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > > 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