Robin Berjon <[EMAIL PROTECTED]> writes:

> I've been thinking about patching URI (more specifically URI::_query) so that 
> it would use semicolons for field separators instead of &. The reason I want 
> this is because I frequently need to insert URIs into XML documents, and 
> semicolon is better (I don't have to escape ampersands).
> 
> I guess that just changing it to join on ; instead of & might not be a good 
> idea as it could break some bad code out there. So I was wondering if you had 
> an opinion on the best way to approach this. A simple option to query_form 
> would seem simplest to me, but I guess you might have other ideas as you know 
> the package much better than I.

This was also suggested by https://rt.cpan.org/NoAuth/Bug.html?id=27

I see two ways to approach this:

   1) add a new method; 'query_form_semi'?
   2) extend the query_form with an initial argument that is the
      param separator.

In case 2) we would assume the first argument is the separator if we
where given an odd number of arguments.  I think I like 2 the best.

Regards,
Gisle

Reply via email to