in reply to Error when passing AoH ref to HTML::Template

Are you sure that $template->param( warnings => \@warning ) is supposed to return a postive value?

Note that $template->output(); won't actually output anything... per the HTML::Template docs, do print $template->output();

Replies are listed 'Best First'.
Re^2: Error when passing AoH ref to HTML::Template
by silent11 (Vicar) on Aug 17, 2005 at 19:49 UTC
    Are you sure that $template->param( warnings => \@warning ) is supposed to return a postive value?
    It does. When I comment out that line, and just print the output everything works fine. Dumper @warning prints the following:

    $VAR1 = { 'missing' => 'email' }; $VAR2 = { 'missing' => 'phone' };
    You're right. It doesn't. As mentioned below I shouldn't have used die.


    -silent11
    Spread Firefox