So, CGI also stopped doing URL escaping itself, now delegating that feature to URI::Escape.
No, CGI has forever delegated the job to CGI::Util::escape()
Clearly, URI knows how to construct URLs. Of course it does. Sadly, it doesn't appear to know anything about CGI parameters in a URL.
Actually it does, see "query_form", but it is PITA ( no state, one-shot replacements), that is why URI::QueryParam, which while more convenient, still kind of a PITA
You can use CGI for this
$ perl -l use CGI; my $queryParams = { a => [qw/ a >< a/], qw/ b b><b c c><c / }; print CGI->new( $queryParams )-> query_string; __END__ c=c%3E%3Cc;a=a;a=%3E%3C;a=a;b=b%3E%3Cb
Badger::URL looked interesting, but naturally, like all interesting things, it doesn't handle something, it doesn't handle multivalued params like fa=a;fa=b;fa=c;
In reply to Re: Links between Mason components?
by Anonymous Monk
in thread Links between Mason components?
by tye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |