RE: Dynamic URI query strings

2000-06-07 Thread Leon Brocard
Gerald wrote: > Then I would use a regex and a hash Oh. I'm still convinced this could be wrapped up in a module. I'll see if there's any interest on clpm. Thanks for your time, Leon -- Leon Brocard | perl "programmer" | [EMAIL PROTECTED]

RE: Dynamic URI query strings

2000-06-07 Thread Gerald Richter
> > > Why don't you simply append to the string? Am I missing something? > > Because that would end up with something like: > /investment/detail.epl?code=FOO&display=WOTSIT&it=BAR&code=007&new=YES > I don't want 'code' twice! > Aah, I see... Then I would use a regex and a hash: my $uriprefix

RE: Dynamic URI query strings

2000-06-07 Thread Leon Brocard
Gerald wrote: > Why don't you simply append to the string? Am I missing something? Because that would end up with something like: /investment/detail.epl?code=FOO&display=WOTSIT&it=BAR&code=007&new=YES I don't want 'code' twice! HTH, Leon -- Leon Brocard | perl "programmer" | [EMAIL PROT

RE: Dynamic URI query strings

2000-06-07 Thread Gerald Richter
> > 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 $uriprefi

Dynamic URI query strings

2000-06-07 Thread Leon Brocard
Heya, I coming across a problem and I'm hoping that someone has solved it in a slightly cleaner way than I have. We have Embperl pages which include Embperl "components". These components need to link to the same pages but with additional parameters (intended for the component) passed in the URL