Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    PDL::Doc 2.3.2

    Download button

    No screenshots available
    Downloads: 367  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Christian Soeller and Karl Glazebrook | More programs
    Perl Artistic License / FREE
    September 7th, 2007, 04:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PDL::Doc description

    PDL::Doc provides support for PDL online documentation.

    PDL::Doc provides support for PDL online documentation.

    SYNOPSIS

    use PDL::Doc;
    $onlinedc = new PDL::Doc ($docfile);
    @match = $onlinedc->search('m/slice|clump/');

    An implementation of online docs for PDL.

    PDL documentation conventions

    For a package like PDL that has a lot of functions it is very desirable to have some form of online help to make it easy for the user to remind himself of names, calling conventions and typical usage of the multitude of functions at his disposal. To make it straightforward to extract the relevant information from the POD documentation in source files that make up the PDL distribution certain conventions have been adopted in formatting this documentation.

    The first convention says that all documentation for PDL functions appears in the POD section introduced by

    =head1 FUNCTIONS

    Individual functions in this section are introduced by

    =head2 funcname

    where signature is the argumentlist for a PP defined function as explained in PDL::PP. Generally, PDL documentation is in valid POD format (see perlpod) but uses the =for directive in a special way. The =for directive is used to flag to the PDL Pod parser that information is following that will be used to generate online help.

    The PDL podparser is derived from the PDL::Pod::Parser class that had to be patched in a few places, partly to fix minor bugs, partly to enhance functionality for perusal by PDL::Doc. Since the PDL::Doc module is still experimental the patched Pod-Parser distribution is included with the current PDL-Doc distribution. Note that PDL::Doc will not work correctly with the released Pod-Parser distribution.

    The PDL Pod parser recognises the following =for directives:

    Ref

    indicates that the one line reference for this function follows, e.g.,

    =for ref

    Returns a piddle of lags to parent.

    Sig

    the signature for the current function follows, e.g.,

    =for sig

    Signature: (a(n), [o]b(), [t]tmp(n))

    Usage:

    an indication of the possible calling conventions for the current function, e.g.,

    =for usage

    wpic($pdl,$filename[,{ options... }])

    Opt

    lists options for the current function, e.g.,

    =for options

    CONVERTER => 'ppmtogif', # explicitly specify pbm converter
    FLAGS => '-interlaced -transparent 0', # flags for converter
    IFORM => 'PGM', # explicitly specify intermediate format
    XTRAFLAGS => '-imagename iris', # additional flags to defaultflags
    FORMAT => 'PCX', # explicitly specify output image format
    COLOR => 'bw', # specify color conversion
    LUT => $lut, # use color table information

    Example:

    gives examples of typical usage for the current function:

    =for example

    wpic $pdl, $file;
    $im->wpic('web.gif',{LUT => $lut});
    for (@images) {
    $_->wpic($name[0],{CONVERTER => 'ppmtogif'})
    }

    Bad

    provides information on how the function handles bad values (if $PDL:Config{WITH_BADVAL} is set to 1). The intention is to have this information automatically created for pp-compiled functions, although it can be over-ridden.

    Requirements:

    · Perl



    Product's homepage

      


    TAGS:

    PDL documentation | PDL manual | Perl module | PDL | documentation | manual

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM