in reply to cpan try to install a module for a higher perl revision

What I have to do to tell cpan to install a revision of YAML suitable to my perl revision? [(revision 5.0 version 6 subversion 1)]
You cannot. The current YAML requires Perl 5.8.0 at minimum.

http://cpansearch.perl.org/src/ADAMK/YAML-0.70/META.yml contains:

requires: Filter::Util::Call: 0 perl: 5.8.0
2nd thought:Install an older version of YAML, one from before the Perl 5.8.0 dependency. Download the gzipped tarball, then:
cpan> install YAML-0.35.tar.gz

Replies are listed 'Best First'.
Re^2: cpan try to install a module for a higher perl revision
by earlati2 (Beadle) on Dec 16, 2009 at 15:53 UTC
    cpan seems to have a problem in searching the right module, because it often try to upgrade modules that is not suitable for perl 5.6.

    There are non way to configure cpan in order to limit it's search only to module revision suitable to my perl revision ?

      There are non way to configure cpan in order to limit it's search only to module revision suitable to my perl revision ?

      No, unfortunately there is not. I'm sure patches are welcome :0)

      The first thing I would try would be to download the package, modify the part of the dist that forces this requirement, and see if the tests still pass. If they do, I'd say you are safe to use it.

      Next would be as others have suggested, to find a version of the dist that does install successfully with your version of perl.

      If you can't get a version of the module working with your perl and you really need this module, you'll have to build a newer perl. See Re: 2nd Perl installation on Mac OSX

      But matter what, you're going to have to learn how the module system works if you need this module. You're using a really old operating system, so you're not going to get much support. But rest assured there are still relatively simple ways to get it to do what you need.