in reply to HTML::Template problems
I think your main problem is in this snippet:
my (@data) = q[$thread->{id}, $thread->{name}, $thread->{date}, $thread->{subj}, $thread->{day_rate}, $thread->{msg}];
You're creating an array with only one element. Your snippet is equivalent to the following. Note that q() is equivalent to the single-quote operator, so the values won't even be interpolated into the string.
my @data = '$thread->{id}, $thread->{name}, ' . '$thread->{date}, $thread->{subj}, ' . '$thread->{day_rate}, $thread->{msg}';
Perhaps you meant something like:
my @data = ( $thread->{id}, $thread->{name}, $thread->{date}, $thread->{subj}, $thread->{day_rate}, $thread->{msg} );
Update: Fixed the 'equivalent' example to single quotes and added explanation (originally was concatenating with double quotes which would not be the same).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTML::Template problems
by stonecolddevin (Parson) on Dec 31, 2003 at 23:31 UTC | |
by stonecolddevin (Parson) on Dec 31, 2003 at 23:34 UTC | |
by jeffa (Bishop) on Jan 01, 2004 at 18:14 UTC |