in reply to Return value to use in HTML::Template

That error means that this is undef  my $return_val_from_tables = tables();