Gimp::Pod - Evaluate pod documentation embedded in scripts.
use Gimp::Pod; $pod = new Gimp::Pod; $text = $pod->format (); $html = $pod->format ('html'); $synopsis = $pod->section ('SYNOPSIS'); $author = $pod->author; @sections = $pod->sections;
Gimp::Pod can be used to find and parse embedded pod documentation in gimp-perl scripts. At the moment only the formatted text can be fetched, future versions might have more interesting features.
Gimp::Pod
return a new Gimp::Pod object representing the current script or undef, if an error occured.
Returns the embedded pod documentation in the given format, or undef if no documentation can be found. Format can be one of 'text', 'html', 'man' or 'latex'. If none is specified, 'text' is assumed.
Tries to retrieve the section with the header $header. There is no trailing newline on the returned string, which may be undef in case the section can't be found.
$header
Tries to retrieve fields suitable for calls to the register function.
Returns a list of paragraphs found in the pod.
Marc Lehmann <pcg@goof.com>
perl(1), Gimp(1),
To install Gimp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gimp
CPAN shell
perl -MCPAN -e shell install Gimp
For more information on module installation, please visit the detailed CPAN module installation guide.