okay, normally i just wouldnt care but this has to be so stupid simple that i just cant let go... i have tried every different way of doing this so im sure its some coding thing i have to do that i am unaware of
in db_utils:
sub menu {
# --------------------------------------------------------
#
my (@subcat) = @_;
my (%c, @fields, $subcat, $description);
open (DB, "<$db_category_name") or &cgierr("unable to open $db_file_name. Reason: $!");
if ($db_use_flock) { flock(DB, 1); }
LINE: while (<DB>) {
(/^#/) and next LINE;
(/^\s*$/) and next LINE;
@fields = &split_decode ($_);
next LINE if (@fields[$db_main_category] =~ "LinkLists");
next LINE if (@fields[$db_main_category] =~ "menu");
$c{$fields[$db_main_category]}++;
}
close DB;
foreach $field (sort keys %c) {
($description) = @{$category{$subcat}}[2];
if ($field =~ m,^([^/]*)$,) {
$field2 = &build_clean($field);
$category_list .= qq|<a title="$description" href="$build_root_url/$field">$field2</a><br> \n|;
}
}
return $category_list;
}
the text in red is what i am working with. everything works fine but the title="$description" produces title="" in the return... what am i doing wrong!?!?!?
thanks in advance for any and all help
Vote Stinky
in db_utils:
sub menu {
# --------------------------------------------------------
#
my (@subcat) = @_;
my (%c, @fields, $subcat, $description);
open (DB, "<$db_category_name") or &cgierr("unable to open $db_file_name. Reason: $!");
if ($db_use_flock) { flock(DB, 1); }
LINE: while (<DB>) {
(/^#/) and next LINE;
(/^\s*$/) and next LINE;
@fields = &split_decode ($_);
next LINE if (@fields[$db_main_category] =~ "LinkLists");
next LINE if (@fields[$db_main_category] =~ "menu");
$c{$fields[$db_main_category]}++;
}
close DB;
foreach $field (sort keys %c) {
($description) = @{$category{$subcat}}[2];
if ($field =~ m,^([^/]*)$,) {
$field2 = &build_clean($field);
$category_list .= qq|<a title="$description" href="$build_root_url/$field">$field2</a><br> \n|;
}
}
return $category_list;
}
the text in red is what i am working with. everything works fine but the title="$description" produces title="" in the return... what am i doing wrong!?!?!?
thanks in advance for any and all help
Vote Stinky