note
Dallaylaen
<p><a href="http://blogs.perl.org/users/neilb/2017/05/specifying-dependencies-for-your-cpan-distribution.html">This article</a> sums up dependencies pretty well.</p>
<p>Here's how you specify recommended/suggested dependencies:</p>
<code>use ExtUtils::MakeMaker 6.64;
WriteMakefile(
# other stuff
META_MERGE => {
"meta-spec" => { version => 2 },
prereqs => {
test => {
recommends => {
'CPAN::Meta' => '2.120900',
},
},
runtime => {
recommends => {
'Text::CSV_XS' => 0,
},
},
},
},
);</code>
942397
942397