Changeset 2333


Ignore:
Timestamp:
2001-04-23T14:03:06+12:00 (23 years ago)
Author:
kjm18
Message:

closed all filehandles that had remained open, to fix the bug that was
occuring when two phind classifiers were run on the same collection.

File:
1 edited

Legend:

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

    r2206 r2333  
    335335    my $self = shift (@_);
    336336
     337    close $self->{'txthandle'};
    337338    my $verbosity = $self->{'verbosity'};
    338339    my $out = $self->{'outhandle'};
     
    672673
    673674    }
    674     }
     675    closedir LANGDIR;
     676    }
     677    closedir STOPDIR;
    675678
    676679    # Read thesaurus information
     
    720723    }
    721724   
     725    close TXT;
     726
    722727    # Calculate the "best" form of each word
    723728    my (%bestform, %totalfreq, %bestfreq);
     
    882887    }
    883888   
     889    close TXT;
    884890    print NUM "$symbol{lc($colend)}\n";
    885891    close NUM;
Note: See TracChangeset for help on using the changeset viewer.