news <[EMAIL PROTECTED]> wrote on 10/11/2006 10:12:02 AM:
> I tried converting that to this:
> 
> my %params = (
>      title => 'Trakker :: Reports',
>      data => $data,
> );
> 
> # I imagine this is totally wrong?!
> %params = (
>      errs => $errs,
> ) if $errs;
> 
> return $self->tt_process( 'template.tt', \%params );

Totally wrong.  :)

There are a bunch of different ways to accomplish this, but here's one:

$params{errs} = $errs if $errs;

Todd

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to