On 09.08.2011 09:11, Gabor Szabo wrote:
So I tried

    configure_requires 'File::Copy::Recursive' =>  0;
    require File::Copy::Recursive;

but that still blows up when I run Makefile.PL

Yes, configure_requires is the way to go. If a CPAN client sees that, it will fetch the requirement before running Makefile.PL/Build.PL. Then wrap your 'use' call in an eval and if that fails, show an informative message to the user, and exit with exit code 0 so that CPAN testers know that their system is not supported. See also <http://wiki.cpantesters.org/wiki/CPANAuthorNotes>.

Reply via email to