Help for this page

Select Code to Download


  1. or download this
    use Text::Levenshtein qw(fastdistance distance);
    
    print fastdistance("history","hustory"), "\n";
     # prints "2"
    
  2. or download this
    print fastdistance("gistory","history"), "\n";
     # prints "1"
    
  3. or download this
    print distance("gistory","history"), "\n";
     # prints "1234561234561"