Template::Manual::Variables Template variables and code bindings http://template-toolkit.org/docs/manual/Variables.html A reference to a hash array may be passed as the second argument to the process() method, containing definitions of template variables. The VARIABLES (a.k.a. PRE_DEFINE) option can also be used to pre-define variables for all templates processed by the object. my $tt = Template->