5
是否可以在模塊的POD中包含常量的內容。例如:在pod中包含常量
use constant DEFAULT_URL => "http://www.example.com";
...
=item B<setUrl>
Change the URL to query. Default is [contents of DEFAULT_URL here]
=cut
是否可以在模塊的POD中包含常量的內容。例如:在pod中包含常量
use constant DEFAULT_URL => "http://www.example.com";
...
=item B<setUrl>
Change the URL to query. Default is [contents of DEFAULT_URL here]
=cut
根據this link,沒有一些工作,這是不可能的。您可以編寫另一個腳本來生成POD文檔,並可能包含該變量。
偉大的鏈接,謝謝!我想我會重新翻譯文檔,而不是嘗試生成/替換... – Markus