Ignore:
Timestamp:
2000-08-31T20:05:25+12:00 (24 years ago)
Author:
sjboddie
Message:

added -out option to classifiers

File:
1 edited

Legend:

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

    r1362 r1483  
    3030package SectionList;
    3131
     32use List;
    3233use sorttools;
    3334
    3435sub BEGIN {
    3536    @ISA = ('List');
     37}
     38
     39sub new {
     40    my ($class, @options) = @_;
     41    my $self = new List ($class, @_);
    3642}
    3743
     
    94100        if (defined $metavalue) {
    95101        if (defined $self->{'list'}->{"$doc_OID.$section"}) {
    96             print STDERR "WARNING: SectionList::classify called multiple times for $doc_OID.$section\n";
     102            my $outhandle = $self->{'outhandle'};
     103            print $outhandle "WARNING: SectionList::classify called multiple times for $doc_OID.$section\n";
    97104        }
    98105        $self->{'list'}->{"$doc_OID.$section"} = $sortmeta;
     
    100107    } else {
    101108        if (defined $self->{'list'}->{"$doc_OID.$section"}) {
    102         print STDERR "WARNING: SectionList::classify called multiple times for $doc_OID.$section\n";
     109        my $outhandle = $self->{'outhandle'};
     110        print $outhandle "WARNING: SectionList::classify called multiple times for $doc_OID.$section\n";
    103111        }
    104112        $self->{'list'}->{"$doc_OID.$section"} = $sortmeta;
Note: See TracChangeset for help on using the changeset viewer.