什么是“双重生活"?模块? [英] What is a "dual-life" module?

查看:87
本文介绍了什么是“双重生活"?模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是双重生活"模块?在 perl for Perl 5.14 中提到.

解决方案

双重生命模块是存在于两个断开连接的源存储库中的模块,通常在Perl内核(随Perl分发的那些库)和CPAN中均具有相同的含义. /p>

与核心版本相比,CPAN版本的更新频率可能更高.核心版本可能已经在更多平台上进行了测试.

在您给出的链接的上下文中,添加为双重生命模块"意味着派生CPAN分发,可能会进行一些更改(例如,标准化文档或许可),并将该派生合并到核心perl存储库中.这意味着当任何人安装此版本的perl时,默认情况下将立即安装此模块.

What is a "dual-life" module? It's mentioned in the perldelta for Perl 5.14.

解决方案

Dual life modules are modules that exist in two disconnected source repositories, commonly meaning both in the Perl core (those libraries distributed with perl), and on CPAN.

The CPAN version may be updated more frequently than the core version. The core version may have been tested on more platforms.

In the context of the link you gave, "adding as a dual-life module" means forking the CPAN distribution, possibly making some changes (such as normalizing documentation or licensing), and incorporating that fork into the core perl repository. This means that this module will now be installed by default when anyone installs this version of perl.

这篇关于什么是“双重生活"?模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆