没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > JavaScript.pm |
|
JavaScript.pm
|
| 3 | 0 | 309 |
| 贡献者 | 讨论 | 代码提交 |
This modules gives you the power of embedded JavaScript in your Perl applications. You can write your subroutines, classes and so forth in Perl and make them callable from JavaScript. Variables such as primitive types, objects and functions are automagically converted between the different environments. If you return a JavaScript function you can call it as a normal code-reference from Perl.
JavaScript is a great as an embedded language because it has no I/O, no IPC and pretty much anything else that can interfer with the system. It's also an easy yet powerfull language that zillions of developers worldwide knows.
Note that this module is not a JavaScript compiler/interpreter written in Perl but an interface to the SpiderMonkey engine used in the Mozilla-family of browsers.
标签:
