* Kate L Pugh <[EMAIL PROTECTED]> [2003-10-01 12:39]: > On Wed 01 Oct 2003, "A. Pagaltzis" <[EMAIL PROTECTED]> wrote: > > Will that work if he's already got a C<use CGI;> in his main script? > > Works for me. Should it not?
I'm not sure. Truth be told, I haven't tried it. Thinking about it, there's only one combination of conditions where I wonder how it could work: when using the OO interface of CGI.pm in the main script, processing a POST request, and trying to get the CGI params via TT:P:CGI. The POST data would already have been consumed and subsequently stored in an object not accessible to TT:P:CGI by the time it comes into play. Of course, you can just pass the CGI instance variable to the template and call methods on it. This also avoids the need to load the plugin. Which is why I never bothered to find out about the potential problem mentioned above. > (And thanks for taking the criticism gracefully). Well, while I don't want to spoonfeed people when I could help them get more out of it than the immediate answer they need (give a man a fish vs teach a man to fish, yadda yadda), I know it is easy to become patronising.. I try my best to find a balance, but end up torn most of the time anyway. -- Regards, Aristotle "If you can't laugh at yourself, you don't take life seriously enough." _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
