Please make sure the file ends on a new line (carriage return).  Some file formats will choke if this is omitted, and I'm not sure if TT is one of them or not.  Your controller file needs to have this added as well, although I'm pretty sure Perl won't complain about it.  In either case, this is considered to be good style practice, and many code editors will add it automatically.