You removed a few extra things... Put the blue parts back in:
$v = 0;
$output .= qq~<BR><SPAN CLASS="xsmall">~;
foreach $subcatsub (sort @{$subcategories{$subcat}}) {
$suburl = "$build_root_url/" . &urlencode($subcatsub) . "/";
if ($subcatsub =~ m,.*/([^/]+)$,) {$subcategory_name = &build_clean($1);}
else {$subcategory_name = &build_clean($subcatsub);}
$output .= qq~<font face="Arial" size="-1" color="Black"><A HREF="$suburl"> $subcategory_name</A>~ if ($v <= 5);
$output .= qq~...~ if ($v eq "5");
$output .= qq~ - ~ if ($v ne $#{$subcategories{$subcat}} && $v <= 5);
$v++;
}
$output .= qq~</font><br>~;
}
Then to make it look better, change these:
# Print Header.
$output = qq|<table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top"width="45%">\n|;
$output .= qq|</td><td width="10%"> </td><td class="catlist" valign="top"width="45%">\n|;
Leonard
aka PerlFlunkie
$v = 0;
$output .= qq~<BR><SPAN CLASS="xsmall">~;
foreach $subcatsub (sort @{$subcategories{$subcat}}) {
$suburl = "$build_root_url/" . &urlencode($subcatsub) . "/";
if ($subcatsub =~ m,.*/([^/]+)$,) {$subcategory_name = &build_clean($1);}
else {$subcategory_name = &build_clean($subcatsub);}
$output .= qq~<font face="Arial" size="-1" color="Black"><A HREF="$suburl"> $subcategory_name</A>~ if ($v <= 5);
$output .= qq~...~ if ($v eq "5");
$output .= qq~ - ~ if ($v ne $#{$subcategories{$subcat}} && $v <= 5);
$v++;
}
$output .= qq~</font><br>~;
}
Then to make it look better, change these:
# Print Header.
$output = qq|<table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top"width="45%">\n|;
$output .= qq|</td><td width="10%"> </td><td class="catlist" valign="top"width="45%">\n|;
Leonard
aka PerlFlunkie