开发者

Include constant in pod

开发者 https://www.devze.com 2023-03-14 15:18 出处:网络
Is it possible to include the contents of a constant in the POD for a module. Example: use constant DEFAULT_URL => \"http://www.example.com\";

Is it possible to include the contents of a constant in the POD for a module. Example:

use constant DEFAULT_URL => "http://www.example.com";
...
=item B<setUr开发者_StackOverflowl>

Change the URL to query. Default is [contents of DEFAULT_URL here]

=cut


According to this link, no this is not possible without some work. You could write another script to generate the POD documentation, and that could include the variable.

0

精彩评论

暂无评论...
验证码 换一张
取 消