首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Codepad.org的Perl运行器限制是什么?

Codepad.org的Perl运行器限制是什么?
EN

Stack Overflow用户
提问于 2010-04-13 05:00:54
回答 2查看 255关注 0票数 3

有时我看到人们使用http://codepad.org作为一种快速运行/测试Perl代码片段的方法(它支持多种语言,从C到Scheme再到Perl)。

很明显,对于哪些代码/特性可以用codepad进行测试,肯定有一些限制--有人知道Perl runner的这些限制是什么吗?

我将根据我自己的观察开始:并不是每个CPAN模块都是可用的:(

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-04-13 05:01:24

主要基于他们的“关于”页面:

与任何安装一样,Perl

  • 代码只支持Perl 5.8.0
  • Presumably,,并不是每个模块(或其他)都存在。

代码语言:javascript
复制
- As a specific example, [List::MoreUtils](http://search.cpan.org/~vparseval/List-MoreUtils-0.22/lib/List/MoreUtils.pm) is missing.
- As a sub-limitation, they seem to run on Linux. So any Windows specific modules would certainly be out.
- It's in a chroot jail with system calls restrictions. Among other things this seems to prevent file creation (my snippets creating files in a current directory or `/tmp` both errored out, as well as File::Temp calls)

  • 代码在虚拟机上执行。在防火墙后面。然后埋在一个掩体里。因此,某些功能可能被禁用了-尤其是网络/互联网功能。确切的“关于”引语是:

代码语言:javascript
复制
- The supervisor processes run on virtual machines, which are firewalled such that they are incapable of making outgoing connections.
- The machines that run the virtual machines are also heavily firewalled, and restored from their source images periodically.
票数 9
EN

Stack Overflow用户

发布于 2010-04-13 14:57:35

只在本地运行Perl代码会更容易。安装多个版本的Perl和跟踪不同的模块存储库非常容易。在虚拟机中运行任何你想要的操作系统也不难。为什么你需要别人的服务来做你自己能做得更好的事情,这是我无法理解的。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2625424

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档