从头开始创建 XS 模块的现代方法是什么? [英] What is the modern way of creating an XS module from scratch?
问题描述
我需要为 Perl 编写一个 XS 模块.我的理解是 h2xs 今天几乎已被弃用,今天启动 XS 模块的首选方法是什么?我查看了 Module::Starter,但它只处理纯 Perl 模块.
I need to write an XS module for Perl. It is my understanding that h2xs is pretty much deprecated today, what is the preferred method for starting an XS module today? I looked at Module::Starter, but it only handles pure Perl modules.
推荐答案
不,h2xs 没有被弃用.如果您创建许多纯 Perl 模块,Module::Starter 肯定会更方便,但没有理由避免使用 h2xs.不过,我建议在使用它之前通读一遍它的文档,这样你就知道你可能希望它做什么或不做什么.
No, h2xs is not deprecated. Module::Starter is certainly more convenient if you create many pure Perl modules, but there's no reason to avoid h2xs. I would recommend reading all the way through its doc before using it, though, so that you know what all you might want it to do or not do.
这篇关于从头开始创建 XS 模块的现代方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!