How can I do approximate matching?

See the module String::Approx available from CPAN.