如何测试将功能添加到Perl的时间? [英] How can I test when a feature was added to Perl?

查看:78
本文介绍了如何测试将功能添加到Perl的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何类似于 codepad 的服务,这些服务可让您在旧版本的perl上测试Perl构造?

理想情况下,您可以在其中输入表达式的系统会告诉您将使用的最旧版本的perl.

当然可以使用CPANTS,但这似乎是对服务的滥用(如果仅是为了使BackPan变大).而且要花好几天/几周的时间才能获得对旧版本的不错的测试覆盖率.

解决方案

您可能会找到 Perl: :MinimumVersion 有用.使用提供的 perlver 实用程序扫描代码.

Are there any services similar to codepad that will allow you to test Perl constructs on old versions of perl?

Ideally, a system where you could enter an expression and it will tell you the oldest version of perl that it will work with.

Of course it's possible to use CPANTS for this, but that seems like an abuse of the service (if only for making the BackPan bigger). And it could take several days/weeks to get decent test coverage on old versions.

解决方案

You might find Perl::MinimumVersion helpful. Use the provided perlver utility to scan your code.

这篇关于如何测试将功能添加到Perl的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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