Hello everyone,

        I got a simple question to ask to the TT gurus :)

        If writing something like:

                [% cgi = CGI %] # using Template::Plugin::CGI 

                or alternatively,

                [% cgi %]               # my $vars = { cgi = CGI->new() };

                some code...

                [% cgi.endform %] # yield 'ARRAY(0xDEADB33F)' ?!

        I don't know why the endform method  outputs something
        like that, so if someone knows the answer please tell us :) 

        As a work-around, remove the endform thingie and everything
        runs fine again; assuming that there's only one form visible 
        to the user, since the first one will clutter the next forms inputs. 

        Best regards,

        Etienne 
        
        p.s -- it seem's like it's only occuring under TT directives, 
        but I cannot explain why just yet..

        However, it does work as expected if using some perl interpreter:
        
        [% PERL %]
        use CGI;
        my $cgi = CGI->new();
        print $cgi->startform, $cgi->textfield, $cgi->endform;
        [% END %]


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to