Pod Tidy
Details
| Last Update: | 2008-01-21 23:01:17 |
| Version: | Pod::Tidy 0.09 |
| License/Program Type: | Perl Artistic License |
| Publisher: | Joshua Hoblitt |
| Price: | $0.00 |
Description:
Pod::Tidy is a reformatting Pod processor.
SYNOPSIS
use Pod::Tidy qw( tidy_files tidy_filehandle );
my $processed = Pod::Tidy::tidy_files(
files => @list,
ignore => [qr/foo/, qr/bar/],
recursive => $recursive,
verbose => $verbose,
inplace => $inplace,
nobackup => $nobackup,
);
Pod::Tidy::tidy_filehandle($input);
This module provides the heavy lifting needed by the podtidy
utility although the API should be general enough that it can be
used directly.
USAGE
Import Parameters
This module accepts no arguments to it's import method and
exports no symbols.
Exportable Subroutines
tidy_files( ... )
Accepts a mandatory hash.
my $processed = Pod::Tidy::tidy_files(
files => @list,
ignore => [qr/foo/, qr/bar/],
recursive => $recursive,
verbose => $verbose,
inplace => $inplace,
nobackup => $nobackup,
);
files
An array ref to a list of files and/or directories.
ignore
An array ref to regex objects that are used to reject files
and/or directories. Each pattern is tried for a match against (in
order) the absolute file path, the relative file path (canonical),
and the basename. In the case of directories, the "basename" is
considered to be the right most path component. For example, the
"basename" of /foo/bar/baz/ would be to be baz.
This key is optional.
recursive
Accepts undef, 0, or 1. If set to 1 any directories provided to
the files key will be recursively expanded. Defaults to undef
This key is optional.
verbose
Accepts undef, 0, or 1. 1 enables verbose warnings. Defaults to
undef.
This key is optional.
inplace
Accepts undef, 0, or 1. 1 enables in place reformatting of
files. Updated files will be backed up unless the nobackup key is
set. The mtime of the file is guarenteed not to be changed unless
formating changes did occur. Defaults to undef.
This key is optional.
nobackup
Accepts undef, 0, or 1. If set to 1 files being reformatted in
place will not be backed up. Defaults to undef.
This key is optional.
Before processing a file it is checked for:
correct access permissions
containing Pod
legal Pod syntax
Any file failing to meet those criteria will not be
processed.
Returns a count of processed files or undef if no files could
be processed.
tidy_filehandle($input)
Accepts an open filehandle. Data from the filehandle is
processed as it is read so this subroutine can be used to filter
large amounts of data. Because of this behavior the input can not
be checked in advance to verify a) That it's actually Pod and b)
that the Pod document uses only valid Pod syntax. Output is set to
STDOUT. Returns nothing.
Requirements:
· Perl
0 comments
Add to
Pod Tidy Version History
Related Software
|
|
From category: Libraries |
| FaceRSS 0.1 is libraries software developed by Matej Koval. FaceRSS is a simple JavaServer Faces (JSF) component that allows you to display news from specified RSS url source in one configurable ta... |
|
|
From category: Libraries |
| CGI::Application::Plugin::RateLimit 1.0 is libraries software developed by Sam Tregar. CGI::Application::Plugin::RateLimit is a plugin for CGI::Application which provides protection against a user... |
|
|
From category: Bug-Tracking |
| Cspot 0.0.5 is bug tracking software developed by Petr Susil. Cspot is a semantic annotator designed only for the C programming language. It is quite similar to cscope, but some more functionality.... |
|
|
From category: Code-Generators |
| Faster Java Serialization 0.22 is code generators software developed by Leonardo Mesquita. Faster Java Serializations goal of the project is to enable faster serialization by generating bytecodes o... |
|
|
From category: Libraries |
| gstreamermm is a GStreamer mm library for GNOME.... |
|
|
From category: Compilers |
| Erlang R11B is compilers software developed by OTP team. Erlang is a programming language designed at the Ericsson Computer Science Laboratory. Open-source Erlang is being released to help e... |
|
|
From category: Perl-Modules |
| Parallel::MPI::Simple is a simple Perl module.... |
|
|
From category: Libraries |
| Craftsman Spy 1.0.5 is libraries software developed by Craftsman. Craftsman Spy is a an open source and free framework for JDBC logging. Craftsman Spy is a JDBC driver implementation. This logge... |
|
|
From category: Perl-Modules |
| Acme::Takahashi::Method it turns your script into slides accordingly to the Takahashi Method.... |
|
|
From category: Libraries |
| Bundle::DataMint 1.02 is libraries software developed by Jaime Prilusky. Bundle::DataMint is a bundle to install external CPAN modules for Data Mining and Data Integration. SYNOPSIS P... |
|
|
From category: Libraries |
| Evolution Data Server 1.9.2 is libraries software developed by Novell Inc.. Evolution Data Server provides a single database for common, desktop-wide information, such as a user\'s address book or... |
|
|
From category: Compilers |
| cim 3.30 is compilers software developed by Sverre Hvammen Johanson. GNU Cim is a compiler for the programming language Simula (except unspecified parameters to formal or virtual procedures (see th... |
|
|
From category: Libraries |
| DISLIN 9.1 is libraries software developed by Helmut Michels. DISLIN is a high-level plotting library for displaying data as curves, polar plots, bar graphs, pie charts, 3D-color plots, surfaces... |
|
|
From category: Libraries |
| Enchant extension for PHP 1.0.1 is libraries software developed by Pierre-Alain Joye. Enchant extension for PHP is a binder for libenchant. Libenchant provides a common API for many spell libraries... |
|
|
From category: Libraries |
| UNIXEm is a UNIX Emulation Library for Win32.... |
Leave a comment