development2Add my vote for this tag documentation4Add my vote for this tag create new tag
, view all tags

Perl Doc Plugin

Extract the Perl documentation (POD) from a Perl module and display it in a topic

Syntax Rules and Example

Write %PERLDOC{"Module"}% to display the documentation of a Perl module, for example %PERLDOC{"File::Copy"}% shows the doc of File::Copy. Optionally use a format="pod" parameter to see the raw POD format, or format="twiki" to see the TWiki markup text.

Use the following form to see the documentation of a Perl module: (this Plugin needs to be installed and enabled)

Perl module name: in format

%PERLDOC{"" format=""}%

Perl code with POD (Plain Old Documentation)

Perl code may contain blocks of documentation. A block typically starts with a =pod or =head1 at the beginning of a line, and ends with =cut at the beginning of a line or at the end of the file. Read the details in http://www.perldoc.com/perl5.6/pod/perlpod.html

POD example:

=head1 Demo of POD

Silly paragraph


Perl code with TWiki markup

TWiki markup can be used inside a =begin twiki ... =end twiki block. Keep in mind that this markup gets parsed correctly only by the PerlDocPlugin, other POD translator ignore the block. The TWiki markup is richer and more compact then POD. Example:

=begin twiki
---++ Demo of TWiki markup
Silly paragraph

=end twiki



  • Links (L<....>) are not supported

Plugin Installation Instructions

  • For an automated installation, run the configure script and follow "Find More Extensions" in the in the Extensions section.

  • Or, follow these manual installation steps:
    • Download the ZIP file from the extension home on twiki.org (see below).
    • Unzip PerlDocPlugin.zip in your twiki installation directory.
    • Set the ownership of the extracted directories and files to the webserver user.
    • Install the dependencies (if any).

  • Plugin configuration and testing:
    • Run the configure script and enable the plugin in the Plugins section.
    • Configure additional plugin settings in the Extensions section if needed.
    • Test if the installation was successful using the examples provided.

Plugin Info

Plugin Author: TWiki:Main.PeterThoeny
Copyright: © 2002-2011 TWiki:Main.PeterThoeny;
© 2008-2011 TWiki:TWiki.TWikiContributor
License: GPL (GNU General Public License)
Plugin Version: 29704 (2015-12-20)
Change History:  
2015-12-20: TWikibug:Item7706: Suppress expansion perl arrays to Twitter links;
TWikibug:Item7707: Fix POD parsing example in plugin topic
2011-07-13: TWikibug:Item6725: Change global package variables from "use vars" to "our"
2011-01-25: TWikibug:Item6638: Doc improvements
2010-08-25: TWikibug:Item6530: Fix for TWiki-5.0; doc improvements; changing TWIKIWEB to SYSTEMWEB
20 May 2007 Fixed for TWiki-4, added "=pod", repackaged with BuildContrib - TWiki:Main.CrawfordCurrie
07 Dec 2002: Removed "=pod" from showing up in html or twiki blocks
01 Dec 2002: Initial version
Dependencies: None
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/PerlDocPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/PerlDocPluginDev

Related Topics: TWikiPreferences, TWikiPlugins, AdminToolsCategory

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmd5 PerlDocPlugin.md5 r7 r6 r5 r4 r3 manage 0.2 K 2015-12-20 - 22:00 HaraldJoerg  
Compressed Zip archivetgz PerlDocPlugin.tgz r7 r6 r5 r4 r3 manage 6.4 K 2015-12-20 - 22:00 HaraldJoerg  
Compressed Zip archivezip PerlDocPlugin.zip r8 r7 r6 r5 r4 manage 8.1 K 2015-12-20 - 22:00 HaraldJoerg  
Unknown file formatEXT PerlDocPlugin_installer r3 r2 r1 manage 3.4 K 2015-12-20 - 22:00 HaraldJoerg  
Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2015-12-20 - HaraldJoerg
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2016 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.