You can use Test::Prereq under the same terms as Perl itself.