Re: Q: How to specify a minimum version of Perl

[email protected] ("David Golden")
Newsgroups perl.module.build
Message-ID <[email protected]>
On Tue, Jul 8, 2008 at 7:57 PM, Ron Savage <[email protected]> wrote:
> In my Build.PL I have:
>  requires =>
>  {
>         Carp            => 0,
>         perl            => '5.005_62',
>         XML::Parser     => 0,
>         XML::Records    => 0,
>         XML::TokeParser => 0,
>  },
> which appears to work, but I only have V 5.10.0 installed.
> So the first question is: Is that correct?

Yes.

> Then, in my Makefile.PL I have:
>  NAME      => 'DBIx::Admin::BackupRestore',

> So the second question is, what's the Makefile.PL equivalent of:
>  perl            => '5.005_62',

    require 5.005_62; # at the top of Makefile.PL

I believe that M::B::Compat in 0.2808_01 will do this for you if you
are having M::B generate your Makefile.PL.

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.