有时我看到人们使用http://codepad.org作为一种快速运行/测试Perl代码片段的方法(它支持多种语言,从C到Scheme再到Perl)。
很明显,对于哪些代码/特性可以用codepad进行测试,肯定有一些限制--有人知道Perl runner的这些限制是什么吗?
我将根据我自己的观察开始:并不是每个CPAN模块都是可用的:(
发布于 2010-04-13 05:01:24
主要基于他们的“关于”页面:
与任何安装一样,Perl
- 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)
- 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.发布于 2010-04-13 14:57:35
只在本地运行Perl代码会更容易。安装多个版本的Perl和跟踪不同的模块存储库非常容易。在虚拟机中运行任何你想要的操作系统也不难。为什么你需要别人的服务来做你自己能做得更好的事情,这是我无法理解的。
https://stackoverflow.com/questions/2625424
复制相似问题