note
George_Sherston
This looks like a problem with the data structure you're feeding to HTML::Template. Try
<code>
use Data::Dumper;
print Dumper(\@liblog);
</code>
to see what you've got. Also to get interesting info about what went wrong,
<code>
use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
print header;
</code>
at the head of your script will give you the useful HTML::Template error info, <em>inter alia</em>.<BR><BR>Specifically in your case I may well be missing a bit of syntax, but I think <code>%$item->{'ActionID'}</code> probably ought to be <code>$item->{'ActionID'}</code> - otherwise you'll get an annoyingly interesting data structure? Or, did you initialise <code>$viewliblog_page</code> as an HTML::Template object? - this isn't clear from the chunk you posted<BR><BR>Also, you could save a bit of effort by modifying the elements in <code>@log</code> rather than creating a new array, as in
<code>
for my $item (@log) {
$item->{UID} = GetItemFromDB('RealName','UID',$item->{'UID'},'User')
$item->{ActionID} = GetItemFromDB('ActionName','ActionID',$item->{'ActionID'},'Action');
}
</code><br><br>§ <A HREF="http://www.sprogress.com">George Sherston</A>
206344
206344