> cpanm had --scan-deps, though it's now listed as deprecated. > > And CPAN has plenty of these sorts of things, eg. Perl::PrereqScanner
App::Midgen and the midgen script were designed to determine and list prereqs of different types, in the formats expected by various things: https://metacpan.org/release/App-Midgen