in reply to HTML::Template problems
Furthermore I suspect that you are seriously mangling your attempt to deal with references to arrays. It may be time to re-read references quick reference, and then replace your while loop with something like this:
Though personally I would be inclined to keep an anonymous hash data structure like this:while ( my $thread = $sth->fetchrow_hashref() ){ push @msgs, [$thread->{id}, $thread->{name}, $thread->{date}, $thread->{subj}, $thread->{day_rate}, $thread->{msg}]; }
(I would also indent differently, but that is cosmetic.)while ( my $thread = $sth->fetchrow_hashref() ){ # I duplicate the data because DBI says that it may # choose to reuse the reference that it returns. push @msgs, { %$thread }; }
|
|---|