Skip Menu |
 

This queue is for tickets about the Text-Similarity CPAN distribution.

Report information
The Basics
Id: 34305
Status: resolved
Priority: 0/
Queue: Text-Similarity

People
Owner: Nobody in particular
Requestors: TPEDERSE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: text_compare.pl does not handle missing files gracefully
If an input file to text_compare does not exist, seems to proceed through the code and errors off very dramatically. Should catch this sooner, and error off more gracefully. CASE 1 ----------------------------------------- text_compare.pl --no-normalize --verbose --type Text::Similarity::Overlaps test1 test2xx (/home/cs/tpederse/MyPerlLib/Text/Similarity.pm:56) Unknown option: compfile (/home/cs/tpederse/MyPerlLib/Text/Similarity/Overlaps.pm:75) The file 'test2xx' does not exist CASE 2 ------------------------------------------ text_compare.pl --type Text::Similarity::Overlaps test1 test2xx (/home/cs/tpederse/MyPerlLib/Text/Similarity.pm:56) Unknown option: compfile (/home/cs/tpederse/MyPerlLib/Text/Similarity/Overlaps.pm:75) The file 'test2xx' does not exist CASE 3 --------------------------------------------- marimba(20): text_compare.pl --type Text::Similarity::Overlaps test1xx test2xx (/home/cs/tpederse/MyPerlLib/Text/Similarity.pm:56) Unknown option: compfile (/home/cs/tpederse/MyPerlLib/Text/Similarity/Overlaps.pm:71) The file 'test1xx' does not exist
Download (untitled) / with headers
text/plain 152b
This has been corrected in version 0.04. If the input files to text_compare.pl are missing an error message is immediately issued and the program exits.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.