Changeset 9409 for trunk/gsdl


Ignore:
Timestamp:
2005-03-14T11:20:22+13:00 (19 years ago)
Author:
jrm21
Message:

use unlink() instead of rm

File:
1 edited

Legend:

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

    r8814 r9409  
    1414# appropriate format.
    1515
     16# returns a string containing comma-separated keyphrases
    1617sub extract_KeyPhrases {
    1718
     
    101102    # Read the resulting doc.key, which contains keyphrases:
    102103
    103     open(IN, "<$gsdlhome/tmp/doc.key") or return @emptykeylist;
     104    open(IN, "<$gsdlhome/tmp/doc.key") or return "";
    104105                                          #this means doc.key does not exist
    105106                                          #either because an option was wrongly specified
     
    114115
    115116    # Delete doc.key so that in future it will not be opened and read.
    116     # Otherwise KEA sees it as athor keyphrases!
     117    # Otherwise KEA sees it as more keyphrases!
    117118
    118     `rm $gsdlhome/tmp/doc.key`;
     119    unlink("$gsdlhome/tmp/doc.key");
    119120   
    120121    return $keylist;
Note: See TracChangeset for help on using the changeset viewer.