$distfile = CPAN::Shell->expand("Module","$check")->cpan_file; @result = CPAN::Shell->expand("Distribution", "$distfile")->prereq_pm;