Changeset 2024


Ignore:
Timestamp:
2001-02-20T15:05:25+13:00 (23 years ago)
Author:
paynter
Message:

Store classifier-specific parameters in gdbm file if required. Implemented
so that Phind.pm can pass data along to (eventually) appear in web pages
(via gdbm, documentaction, and macros).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify.pm

    r1839 r2024  
    6767        }
    6868    }
    69     push @newoptions, "-builddir", "$build_dir";
    70     push @newoptions, "-outhandle", "$outhandle";
     69    push @newoptions, "-builddir", "$build_dir" if ($build_dir);
     70    push @newoptions, "-outhandle", "$outhandle" if ($outhandle);
    7171    push @newoptions, "-verbosity", "2";
    7272
     
    7474    my $options .= join (",", @newoptions);
    7575
    76     # print STDERR "$classname\noptions: $options\n";
    7776    eval ("\$classobj = new \$classname($options)");
    7877    die "$@" if $@;
     
    149148    $outputtext .= "<thistype>$classifyinfo->{'thistype'}\n"
    150149        if defined $classifyinfo->{'thistype'};
    151 
     150    $outputtext .= "<parameters>$classifyinfo->{'parameters'}\n"
     151        if defined $classifyinfo->{'parameters'};
    152152   
    153153    my $contains_text = "<contains>";
Note: See TracChangeset for help on using the changeset viewer.