use perl5:Template; my $v = { string => "This is string" }; my $t = Template.new; my $r = $t.process("hello", $v, VAR($v)); $r.say;