use Filter::Template; template max (one,two) { ((one) > (two) ? (one) : (two)) } # Expand the "max" template inline. # Generates and runs code that prints # the largest value of two scalars. print {% max $a, $b %}, "\n";