Mathematical Operators
[% # all the usual mathematical operators a ** b a * b a / b a + b a - b a % b a div b a mod b %]--EOF--look inside...
Thus Spake Andy:
TT2 often violates the "Principle of Least Surprise" for Perl programmers. It's almost the same as Perl, but not quite in some places. TT3's parser is driven from a simple table of operators. Each operator is implemented in a few lines of code. The upshot is that it's really easy to add new operators (or disable existing ones). TT3 provides all of Perl's basic operators... including math operators...