How to specify the minimum perl version for my distribution in Dist :: Zilla dist.ini?

I am working on a Net :: Prober distribution using dzil . From the next version, I would like to provide a minimum requirement for perl 5.10 + (it was 5.006), because I use named capture :-)

Now I put use 5.010; to the beginning of my main module, and that’s fine, but I was wondering: is there a way to specify the minimum version of the perl interpreter in the dist.ini file ?

My current dist.ini :

 name = Net-Prober version = 0.07 ... [Prereqs] Carp = 0 Data::Dumper = 0 Digest::MD5 = 0 IO::Socket::INET = 0 IO::Socket::SSL = 0 IO::Socket::UNIX = 0 LWPx::ParanoidAgent = 0 Net::Ping = 2.34 Sys::Syslog = 0 [Prereqs / TestRequires] Test::More = 0 LWP::Online = 0 ... 

Is it possible to add perl = 5.010 to the [Prereq] block?

+6
source share
1 answer

Is it possible to add perl = 5.010 to the [Prereq] block?

Yes, you can. In addition, there is a MinimumPerl plugin that automatically determines the minimum perl version that is required.

+7
source

Source: https://habr.com/ru/post/920942/


All Articles