Variable names may contain any alphanumeric characters or
  underscores.  They may be lower, upper or mixed case
  although the usual convention is to use lower case.  The
  case is significant however, and 'foo', 'Foo' and 'FOO'
  are all different variables.  Upper case variable names
  are permitted, but not recommended due to a possible con=AD-
  flict with an existing or future reserved word.

No periods allowed in variable names. :(

--mark

> -----Original Message-----
> From: Uwe Voelker [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 25, 2002 9:07 AM
> To: [EMAIL PROTECTED]
> Subject: [Templates] Variable names with '.' inside
>=20
>=20
> Hello,
>=20
> how can I output variables with '.' inside?
>=20
> PERL:
> #!/usr/bin/perl -w
>=20
> use strict;
> use Template;
>=20
> my $template =3D Template->new();
>=20
> my $data =3D {'FORM.Table.0.name' =3D> 'uwe'};
>=20
> $template->process('varnames.txt', $data)
>       or die $template->error;
>=20
> TEMPLATE:
> Hallo [% ${'FORM.Table.0.name'} %]!
>=20
>=20
> I have also tried other version, but none did work :-(
>=20
>=20
> Thank you, good bye,
> Uwe
>=20
>=20
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-toolkit.org/mailman/listinfo/templates
>=20


Reply via email to