Package : perl-Pod-Elemental-MakeSelector

Package details

Summary: Build complex selectors as a single sub

Description:
The selectors provided by the Pod::Elemental::Selectors manpage are fairly
limited, and there's no built-in way to combine them. For example, there's
no simple way to generate a selector that matches a section with a specific
name (a fairly common requirement).

This module exports a single subroutine: 'make_selector'. It can handle
everything that Pod::Elemental::Selectors can do, plus many things it
can't. It also makes it easy to combine criteria. It compiles all the
criteria you supply into a single coderef.

A selector is just a coderef that expects a single parameter: an object
that does Pod::Elemental::Paragraph. It returns a true value if the
paragraph meets the selector's criteria.


URL: https://metacpan.org/release/Pod-Elemental-MakeSelector
License: GPL+ or Artistic

Maintainer: nobody

List of RPMs