use Test::More; SKIP: { eval { require DBD::SQLite }; skip "DBD::SQLite not installed", 3 if $@; # 3 is "how many to skip" # ... tests using SQLite }