> > So if $q above is : hi=bye&love=hate&one=two&etc=etc > > Hmmm. Do you work for the State Department or something? Or > the White House Press office?
That was a good one > > > > I want to remove, say 'love', so it'd be: hi=bye&one=two&etc=etc > > > > I know I could do a regex but I'd like a CGI way to do > > Why mess with it? If you need a string without the > particular parameters, you could easily regex them out:in the > variable itself, but the query string of the CGI object is > basically meant as a read-only attribute. Why not just work > with the variable $q? Since the CGI module is basically > object-oriented, the CGI way to do it would be to just let > the internals of the CGI object be, use what you need, and > leave the rest. > > It would probably help to know what actual effect you are > trying to achieve that you see as requiring manipulation of > the query string. Well what I wanted to do was this: Take the value of a param, remove it and replace it with something else based on what the original param was: Joe=mama&do=this If($do = 'this') { $work = 'hard'; } else { $work = 'lazy'; } Joe=mama&work=$work Then I use this string to as an argument to a backtick execution. It's to verify input and an extra layer to keep evil things out. The CGI delete() function did the trick for this. Thanks Dan > > Joseph > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]