in reply to Re: use lib problem.
in thread use lib problem.

Well, your use statements will get executed at compile-time whether the condition is true or not. To conditionally load a module at runtime, you can do this:
if ( $want_to_check_email ) { unshift @INC, $mod_path; require Email::Valid; Email::Valid->import; }