(perl) use a Perl module unless a condition holds