in reply to Re: encode params in Template into array ref
in thread encode params in Template into array ref

Now i manualy encode result array reference of strings, but it's not comfortably.
  • Comment on Re^2: encode params in Template into array ref

Replies are listed 'Best First'.
Re^3: encode params in Template into array ref
by Anonymous Monk on Dec 09, 2014 at 18:11 UTC
    I'm not really sure what you mean by 'array', but I see that Template talks about 'hash array' (strange terminology... but whatever).
    use Encode; my $enc = Encode::find_encoding('utf-8'); # or some other encoding... my %encoded = map { $enc->encode($_), $enc->encode( $decoded{$_} ) } keys %decoded;
    Looks alright to me...
      I think it's just a typo.
      If you read Template::Config section, there is a mention about array reference.