in reply to how to determine whether a module is installed or not?

Something like this (untested and I am rusty):
eval {require Text::LevenshteinXS}; if ($@) { eval {require Text::Levenshtein}; else { require "Levenshtein.lib"; } }

Replies are listed 'Best First'.
Re^2: how to determine whether a module is installed or not?
by Anonymous Monk on Dec 28, 2010 at 05:58 UTC
    Thank you very much.