No description, website, or topics provided.
Switch branches/tags
Nothing to show
Latest commit abf7ae3 Oct 26, 2016 @ugexe ugexe committed on GitHub Merge pull request #3 from zoffixznet/patch-1
Add mandatory "perl" META field
Failed to load latest commit information.
lib/Operator Add unit declarator to module declarations Jun 20, 2015
t added tests Oct 31, 2014 Add mandatory "perl" META field Oct 26, 2016 README shameless git tip link Oct 31, 2014

#feq Operator

Provides feq operator for clean fuzzy string comparisons.

Includes a precanned wrapper for Text::Levenshtein::Damerau (the wrapper uses just the Levenshtein algorithm by default)


##Out of the Box™

use Operator::feq;

if '1234567890' feq '1234567899' {
  'I\'m here!'.say;

if '12345' feq '123' {
  'I don\'t get here'.say;

#I'm here!

See the tests for an example of how to extend/create custom comparison routines.



Defaults: Text::Levenshtein::Damerau

Set this dynamic variable to control which library 'feq' uses


Defaults: 0.10 # 10%

Set this dynamic variable to control the threshold for the matching. Setting this variable to 0 will always cause feq to return False. Conversely, a value of 1 will always return True.

#Credit Cards


Nick Logan <ugexe>