in reply to Re^3: Help with making a Module to reveal supported Perl versions
in thread Help with making a Module to reveal supported Perl versions

Yes, that is a can of worms. Sometimes it's easiest to just look at the Changes files of the modules your module depends upon to see if you're using some feature that wasn't available in earlier versions. Then in your Makefile.PL specify a minimum version number for that module which will satisfy your use case.

Dual-lifed modules are tricky too, but the process is similar.

As a last resort you can upload a dev release of your module to CPAN and watch the FAIL reports roll in.

The undertaking of determining what the earliest version of all dependency modules needs to be to support a given module on a given version of Perl is really hard. If you have the time, energy, and capability to do it right, be sure to put it on CPAN. If you don't have the time, energy, and capability to do it right, you are not alone. ;)


Dave

Replies are listed 'Best First'.
Re^5: Help with making a Module to reveal supported Perl versions
by boftx (Deacon) on Dec 11, 2013 at 21:47 UTC

    davido, that is exactly the approach I took with Module::Cooker. I left out any minimum perl version and waited for FAILS to come in. The only one was on 5.6 so far and seems tied specifically to File::Path. make_path seems to have been introduced in F::P v2.06_2 so I am setting that in a prereq in Makefile.PL and going to see what happens from there.

    The only real annoyance is that in order to test on a given version I have to have a clean perlbrew install, and that can be problematic at times on a shared hosting server.

    It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
Re^5: Help with making a Module to reveal supported Perl versions
by taint (Chaplain) on Dec 11, 2013 at 22:19 UTC
    "The undertaking of determining what the earliest version of all dependency modules needs to be to support a given module on a given version of Perl is really hard. If you have the time, energy, and capability to do it right, be sure to put it on CPAN. If you don't have the time, energy, and capability to do it right, you are not alone. ;)"

    Quite right davido. I'm going for it. I think it'll save, when done correctly, and maintained, a great deal of time for developers, and be well worth the effort.

    Thanks for your reply.

    --Chris

    Yes. What say about me, is true.