Functions

[% sub bold(text) "<b>$text</b>" bold('Hello World') %] --EOF--
look inside...
Thus Spake Andy:

If a block contains only a single expression then you can do away with the braces (as in C, C++, Javascript, etc).