[Catalyst] Using CGI via template...

LD ldsift-perl at yahoo.com.au
Wed Apr 13 15:16:51 CEST 2005


Hi there,

On 13/04/2005, at 4:12 PM, LD wrote:

> When display[ing] the page at http://localhost:3000/ I'm getting the 
> follwing output:
>    ARRAY(0xb2a138) <foo> ARRAY(0xa8e350)
>
> Note: foo is a valid drop down list - but the arrays appearing are 
> weird.
> The relevant section in the template is as follows.

funnily enough [% CGI.end_form %] is returning a list with ('<div>', 
'</div>', '</form>').

So, I've resorted to:
[% MACRO scalar(list) GET list.join %]
...
[% CGI.start_form %]
[% scalar(CGI.checkbox_group({name => 'colours',
                               values => [ 'red', 'green', 'blue' ]}))
%]
[% scalar(CGI.end_form) %]

cheers,
LD




More information about the Catalyst mailing list