I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-05-16 21:31:21-07 by turnpast
TT chokes on undefined object variables in some environments and not others.
Anyone know about Template-Toolkit here? Here is my problem:

My application is just about complete and runs just dandy on the development server. I move it to the production server and some of my page stop working -- OK, no big deal, I start track the problem down. I present a number of perl objects and have (perhaps mistakenly) relied on TT's tolerance of undefined values. When I try to access something that does not exist I expect to get undef and I do (and I have for about 4 years of TT usage now). Up on the production box it starts puking errors: undef error - Can't locate object method "blah" via package "blah" at....

I have updated to the newest version of TT on both boxes. The dev is Linux and the production BSD. I tried setting the TOLERANT flag in the TT config. it seems to be behaving like I have the DEBUG_UNDEF flag set (I do not).

I anyone knows about the internals of TT or has dealt with anything similar (or perhaps knows a place where I might find someone who does know) I would be greatful for some help.

Thanks for reading.
Direct Responses: 468 | Write a response
Posted on 2005-05-17 15:36:49-07 by davorg in response to 462
Re: TT chokes on undefined object variables in some environments and not others.

You'd be better off asking your question on the TT mailing list. That's where all the TT experts hang out.

See http://www.template-toolkit.org/mailman/listinfo/templates

Dave...

Direct Responses: Write a response