in reply to Re^3: Clean way to build URI's?
in thread Clean way to build URI's?

BTW:URL encoding is easily applied after the interpolation.

Not without possible data loss.

my $value = 'foo&bar=baz'; my $key = 'something' my $url1 = encode_url("http://example.com/script?$value=$key"); my $url2 = 'http://example.com/script?%s=%s', map encode_url_chunk($_) +, $key, $value;

For proper working functions encode_url and encode_url_chunk (which have to encode different things, of course) the outcome will be different.

Perl 6 - links to (nearly) everything that is Perl 6.