Eliot, thank you for your support,
but I tried the following two arrangment, not work,
Do I misunderstand your meaning? I think so .............
For ref, I tried:
$top_rated = ''; $top_votes = '';
# ***************************
$new_7 = <img src="http://www.webassic.com/images/new_7.gif" border="0" width=53 height=18 align="absmiddle">; $new_14 = <img src="http://www.webassic.com/images/new_14.gif" border="0" width=59 height=18 align="absmiddle">; my %rec = @_;
my $days_old = &days_old($rec{'Date'});
my $new_img = "";
if ($days_old <= 7) { $new_img = $new_7; }
elsif ($days_old <= 14) { $new_img = $new_14; }
else { (delete $rec{'isNew'}); }
# ***********************************
$top_rated .= qq~ $new_img ~; AND
$top_rated = ''; $top_votes = '';
# ***************************
$new_7 = qq~ <img src="http://www.webassic.com/images/new_7.gif" border="0" width=53 height=18 align="absmiddle"> ~; $new_14 = qq~ <img src="http://www.webassic.com/images/new_14.gif" border="0" width=59 height=18 align="absmiddle"> ~; my %rec = @_;
my $days_old = &days_old($rec{'Date'});
my $new_img = "";
if ($days_old <= 7) { $new_img = $new_7; }
elsif ($days_old <= 14) { $new_img = $new_14; }
else { (delete $rec{'isNew'}); }
# ***********************************
$top_rated .= $new_img; help ......
-- Adam