perl 版本特定的语法资源 [英] perl version specific syntax resource

查看:46
本文介绍了perl 版本特定的语法资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有网络上的资源可供我查看以查找 perl 版本(5.8.1 与 current_stable)特定语言语法,而无需转到 perldoc 并在版本之间切换,然后搜索我使用的语言项想看看它是否存在于所选版本中?

这似乎是一种糟糕的方式,我想我会问蜂巢看看是否有更好的方法.

例如,如果我搜索say",我想知道它出现在 perl 5.10+ 中.

谢谢.

edit-- 作为说明,我寻找的原因通常是我发现自己必须支持我无法"升级的旧版本的 perl,但仍然需要为其编写代码.当某些事情从 5.12+ 到 5.8- 时没有按预期工作时,这将成为一项乏味的任务,我只是希望找到更好的方法(并且我认为在这种情况下我不能成为唯一的人).

编辑——我基本上是在寻找一个可以通过网络理想地获得的多合一参考区域.点击说",发现它在 v5.10 启用该功能时可用,或者某些函数在版本 Z 中学会了如何使用不同的参数等.对于许多语言,如果你去查看一个核心类/lib/模块您可以找到其参数、方法、函数等的完整版本历史记录.就实用程序和模块而言,perlver看起来也不错.

解决方案

另一种不太好的方法是通过 deltas:http://perldoc.perl.org/index-history.html您可以随时尝试搜索它们:

grep 说 perl*delta.pod

但是是的,这不是一个好方法.

Is there a resource on the web that I can look to in order to find perl version (5.8.1 vs current_stable) specific language syntax without having to go to perldoc and switch between versions then search for the language item I'm looking for to see if it exists in the selected version?

This just seems like a crappy way and I figured I'd ask the hive to see if there's better.

For instance, if I search for 'say' I'd like to know that it appeared in perl 5.10+.

Thank you.

edit-- As a note, the reason I'm looking is often I find myself having to support old versions of perl that I "can't" upgrade, yet still need to write code for. This becomes a tedious task when certain things don't work as expected going from 5.12+ to 5.8- and I was just hoping to find a better way (and I figured I can't be the only one in this situation).

edit-- I was basically looking for an all in one reference area ideally available via the web. Click 'say' and find that it's available in v5.10 when the feature is enabled, or that some function learned how to take different arguments in version Z, etc. With many languages, if you go view a core class/lib/module you find a whole version history for its arguments, methods, functions, etc. As far as utilities and modules go, perlver looks nice, as well.

解决方案

Another not that nice way is to go through deltas: http://perldoc.perl.org/index-history.html You could always try searching through them:

grep say perl*delta.pod

But yes, this is not nice and easy way.

这篇关于perl 版本特定的语法资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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