How can I compile the Perl 5.12 module for Perl 5.8.9?

I want to install File :: Fetch, which is the main module in Perl 5.12, in my Perl 5.8.9. In general, I want to compile and install the modules of the future in my updated Perl, because I cannot update my Perl.

So, I downloaded the module, as well as its dependencies. This is pretty painful after the dependency tree, but I'm more concerned about the fact that some of them are core modules. If I install them, my Perl 5.8.9 kernel will have patches from 5.12.

My question is how can I know if I can safely install modules released in the future, especially core modules. Is there a tutorial for this purpose testing backwardcompatability in Perl?

EDIT:
My module is dual, but I cannot compile it with cpan. He said that my FTPsite.yaml has a bad item. However, I followed the dependencies in the META files and I was able to compile the module. Is this one of the odd bits with cpan? Thank.

I cannot recreate the problem after installing all these dependencies manually. But here is the error:

cpan[5]> install File::Fetch
Running install for module 'File::Fetch'
Running make for B/BI/BINGOS/File-Fetch-0.24.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Time::HiRes loaded ok (v1.9715)
CPAN: YAML loaded ok (v0.72)
Alert: While trying to 'parse' YAML file
 '/Users/martin/.cpan/FTPstats.yml'
with 'YAML' the following error was encountered:
  YAML Error: Invalid element in map
   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
   Line: 3
   Document: 1
 at /opt/local/lib/perl5/site_perl/5.8.9/YAML.pm line 36
+3
source share
2 answers

(.. "" ), , ​​Perl, Perl, , Makefile . , cpan <Module>, , .

, , - , , S.O.L.

+8

perl , , perls ( perl), , .

, 5.10 , perl.

cpan cpanplus .

+5

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


All Articles