I did put them inside [% %], but even when I ran the examples in your
__DATA__ example below, it still didn't do it correctly.
It works now though -- see next post.
Craig Barratt wrote:
>
> > Instead of the value of acmemail.T.To, the actual string "acmemail.T.To"
> > is being printed out.
>
> Outside [% %] these will interpolate to strings. Did you put them
> inside [% %]? Here's an example:
>
> #!/bin/perl
>
> use Template;
> $tt = Template->new;
> $tt->process(\*DATA, { acmemail => { T => { TO => 123}}})
> || die $tt->error();
>
> __DATA__
> Example 1: [% ${"acmemail.T.TO"} %]
> Example 2: [% to = "acmemail.T.TO"; $to; %]
>
> produces:
>
> Example 1: 123
> Example 2: 123
>
> Craig
--
Regards,
Wim Kerkhoff, Software Engineer
Merilus, Inc. -|- http://www.merilus.com
Email: [EMAIL PROTECTED]