Gervase Markham wrote:
> However, I'm having a problem with the set_legend method of the Graph 
> object. It expects a list, and internally turns it into a list reference 
> like this:
> 
> sub set_legend # List of legend keys
> {
>     my $self = shift;
>     $self->{legend} = [EMAIL PROTECTED];
> }

Yep, I'm afraid TT doesn't really support non-reference lists.

I suspect you'll need to extend the Template::Plugin::GD::Graph::* 
modules to have a set_legend() wrapper method which de-references the
list and passes the values to the underlying method.

See the existing set() methods in the plugin modules for examples of
such wrappers.

HTH
A



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

Reply via email to