Clownfish::DocuComment - Formatted comment a la Doxygen.
my $text = <<'END_COMMENT'; /** Brief description. * * Start the long description. More long description. * * @param foo A Foo. * @param bar A Bar. * @return a return value. */ END_COMMENT my $docucomment = Clownfish::DocuComment->parse($text);
my $self = Clownfish::DocuComment->parse($text);
Parse comment text.
my $self = Clownfish::DocuComment->new( description => "Brief. Start long. More long.", brief => "Brief.", long => "Long start. More long.", param_names => \@param_names, param_docs => \@param_docs, retval => "a return value." );
description - The complete description.
brief - The first sentence of the description (a "brief" description).
long - The description minus the first sentence.
param_names - An array of param names.
param_docs - An array containing a blurb for each param name.
retval - Return value.
Accessors.
To install Lucy::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lucy::Simple
CPAN shell
perl -MCPAN -e shell install Lucy::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.