在哪里可以找到cpanfile格式定义? [英] Where can I find the cpanfile format definition?

查看:107
本文介绍了在哪里可以找到cpanfile格式定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们考虑使用 Minilla Dist :: Milla 进行perl开发.声明依赖关系是通过 cpanfile 完成的.我期望找到可以声明什么和如何声明的确切定义.但是

We consider to use Minilla or Dist::Milla for our perl development. Declaring dependencies is done via cpanfile. I expected to find an exact definintion of what and how can be declared. But

  • perldoc cpanfile: 仅显示主要用法. 另请参阅"部分无济于事.

  • perldoc cpanfile : Shows only the principal usage. 'SEE ALSO' section does not help.

perldoc模块:: CPANfile:与cpanfile相同.

perldoc Module::CPANfile: same as cpanfile.

perldoc cpanfile-faq:仅提供其确切语法的解释或链接

perldoc cpanfile-faq: no explanation of the exact syntax or a link to it, only

熟悉的DSL语法

Familiar DSL syntax

这是一种新的文件类型,但是格式和语法并不是全新的. 它可以声明的元数据恰好是其中的"Prereqs"的子集 CPAN元规范.

This is a new file type, but the format and syntax isn't entirely new. The metadata it can declare is exactly a subset of "Prereqs" in CPAN Meta Spec.

语法从Module :: Install大量借鉴. Module :: Install是一个 轻松声明模块元数据(例如名称,作者和 依赖关系. cpanfile格式只是提取依赖项 放入一个单独的文件中,这意味着大多数开发人员 熟悉语法.

The syntax borrows a lot from Module::Install. Module::Install is a great way to easily declare module metadata such as name, author and dependencies. cpanfile format is simply to extract the dependencies into a separate file, which means most of the developers are familiar with the syntax.

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆