如何从perl文件生成dll?
我有一个 .pl 文件(perl 文件),我需要为该 perl 文件生成 .dll,我不知道如何生成,有人可以帮助我吗?
I have one .pl file(perl file) I need to generate the .dll for that perl file,I don't know how to generate can any one help me ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否希望将 Perl 文件制作为 Windows 可执行文件? 此 PerlMonks 节点 建议了一些实现方法,并提供了有关如何使用App::Packer CPAN 模块。
您是否希望使用其他语言(例如 C)的 Perl 代码?那么perlembed 教程可能会有用。
您是否出于其他原因想要从 Perl 文件中创建 DLL? 此 PerlMonks 节点上的其他解决方案(其中有人提出与您相同的问题)也可能有用。
不过,首先请考虑一下为什么需要从 Perl 文件创建 DLL。如果不是由于这些原因之一,并且您不需要其他编程语言来调用该 Perl 文件及其函数,请考虑是否需要执行其他操作,而不仅仅是使用 Perl 解释器运行该文件。
Are you looking to make a Windows executable out of your Perl file? This PerlMonks node suggests some ways of doing it, and gives a tutorial on how to use the App::Packer CPAN module.
Are you looking to use Perl code from another language such as C? Then the perlembed tutorial may be of use.
Are you looking to make a DLL out of a Perl file for some other reason? Other solutions on this PerlMonks node where someone asks the same question as you may also be useful.
First, though, think about why it is that you need to make a DLL from a Perl file. If it's not for one of these reasons, and you don't need other programming languages to be able to call that Perl file and its functions, think about whether you need to do anything further than just running the file with the Perl interpreter.