Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include constant in pod

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<setUrl>

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

=cut
like image 573
Markus Avatar asked Oct 24 '22 08:10

Markus


1 Answers

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.

like image 51
Joel Avatar answered Nov 15 '22 05:11

Joel