Subject: | array range operator |
Date: | Thu, 07 Jan 2010 00:34:10 +0100 |
To: | Bugs in Jemplate via RT <bug-Jemplate [...] rt.cpan.org> |
From: | Gernot Kieseritzky <gernotk [...] gmail.com> |
in Perl-TT the following is legal code to produce a list:
[% list = [1 .. 10] %]
In Jemplate (0.23) a template containing any such statement will
successfully compile but when being executed will trigger a JavaScript
run-time error similar to "missing name after . operator" (as tested in
firebug). To fix that Jemplate should either return a compile-time error
or even better implement the array range operator.