Functions

[% foo() # called in scalar context by default foo # called via textification bar = foo # bar is a reference to foo bar() # calling foo via bar alias baz(foo, bar) # passes function references baz(foo(), bar()) # calls foo() and bar first %] --EOF--
look inside...
Thus Spake Andy:

Function handling is improved. You can explicitly call a function using parens, e.g. foo(). If you just "print" a function (there's no print in TT, but the second line in the above example is the closest equivalent) then TT3 will automatically call it for you during the "textification" process. However, if you use a function in an expression (e.g. assigning it to another variable or passing it as an argument to another function) and you don't add parens on the end then it remains a function reference. Adding parens on the end will ensure that it is called first if that's what you really want. So in this regard, TT3 is more like Javascript (and Perl if you don't mind squinting ad pretending that there's no arrow in something like $code->())