新模块的CPAN安装是否会影响同一实时生产服务器上的Perl-CGI应用程序? [英] Does CPAN installing of new modules impact Perl-CGI applications on same live production server?

查看:57
本文介绍了新模块的CPAN安装是否会影响同一实时生产服务器上的Perl-CGI应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CentOS Linux网络服务器上有一些Perl/CGI程序.我希望编写更多需要当前未安装Perl模块的应用程序.

I have some Perl/CGI programs on a CentOS Linux webserver. I wish to write further applications that require Perl modules not currently installed.

在同一台实时生产服务器上运行CPAN会对这些程序(显然当前不使用这些模块)产生任何影响吗?

Does running CPAN on the same live production server impact these programs (which currently don't use the modules, obviously) in any way?

推荐答案

有一种可能的效果.如果要安装的模块需要已经使用的较新版本的模块,则这些较新版本可能会影响现有程序的行为.

There's one possible way that it could have an effect. If the modules you are installing require newer versions of modules that you are already using, then it's possible that these newer versions could affect the behaviour of your existing programs.

例如.假设您当前安装了1.0版的Foo.pm.现在,您要安装一个名为Bar.pm的新模块.但是Bar.pm依赖于Foo.pm的2.0版-因此,CPAN将安装Bar.pm的新版本作为Foo.pm的一部分.在最坏的情况下,Foo.pm的作者可能已经完全更改了版本之间模块的接口.在这种情况下,安装了2.0版的所有使用Foo.pm 1.0的程序都可能会停止运行.

For example. Suppose you currently have version 1.0 of Foo.pm installed. You now want to install a new module called Bar.pm. But Bar.pm depends on version 2.0 of Foo.pm - and CPAN will therefore pull in a newer version of Foo.pm as part of the installation of Bar.pm. In the worse case scenario, the author of Foo.pm could have completely changed the interface of the module between versions. In that case any program that uses Foo.pm 1.0 could stop working when version 2.0 is installed.

这不太可能,因为Perl模块通常会努力工作以保持向后兼容性.但这就是为什么我们拥有测试环境和测试套件,并且在没有首先对其进行全面测试的情况下才将产品投入生产的原因.

It's very unlikely as Perl modules usually work hard to maintain backwards compatibility. But this is why we have testing environments and test suites and don't put stuff into production without testing it thoroughly first.

这篇关于新模块的CPAN安装是否会影响同一实时生产服务器上的Perl-CGI应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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