What version of URI::Template are you using?
With the latest version and the following script:
use strict;
use warnings;
use URI::Template;
my $u = URI::Template->new( '/{foo}/{+bar}' );
print $u->process(
foo => 'first',
bar => 'second/third/fourth.html'
);
I get the output:
/first/second/third/fourth.html
Which seems to be what you want.
-Brian
On Thu Nov 12 13:33:51 2015, Glen.Van_Ginkel@nanoporetech.com wrote:
Show quoted text> Hi,
>
> I'm trying to replace the following url template
>
> /{foo}/{+bar}
>
> With the values
>
> foo => 'first',
> bar => 'second/third/fourth.html'
>
> and I cannot find a way of preventing Template from creating the
> following result
>
> /first/second%252Fthird%252Ffourth.html
>
> What am I doing wrong?
>
> Regards,
>
> Glen