Subject: | Documentation bug in example code |
Date: | Sun, 16 Apr 2006 10:47:58 -0400 |
To: | bug-cgi-application-plugin-tt [...] rt.cpan.org |
From: | Trammell Hudson <hudson [...] osresearch.net> |
The example code for CGI::Application::Plugin::TT has a bug:
sub myrunmode {
my $self = shift;
my %params = {
email => ’email@company.com’,
menu => [
{ title => ’Home’, href => ’/home.html’ },
{ title => ’Download’, href => ’/download.html’ },
],
session_obj => $self->session,
};
return $self->tt_process(’template.tmpl’, \%params);
}
%params is a hash, but is being assigned a hashref. It should have
() instead of {} for the grouping, or should be defined as $params.
Thanks!
-- Trammell
Message body not shown because it is not plain text.