I've run into a problem with TT with using CGI to generate HTML:
Give this:
#!/usr/bin/perl -w
use Template;
use CGI;
my $tt = Template->new();
my $args = {
cgi => CGI->new,
fooey => [qw/foo bar baz/],
};
$tt->process(\*DATA, $args) or die $tt->error();
__END__
[% cgi.h1("Test") %]
[% cgi.checkbox_group('list', fooey) %]
-------------------------------------------------------------------
I get output of:
<h1>Test</h1>
ARRAY(0x83b4260)
Which isn't really expected...
Anyone encountered anything like this? Or know how to deal with it
nicely? I really don't want to have to write looping code to do all this
for me :(
Tony
--
--------------------------------------------------------------------------
Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/
And if you need my attention Be bizarre
--------------------------------------------------------------------------