BSD Ports

textproc/p5-Text-Filter 1.10_1 DragonFly

Base class for objects that can read and write text lines

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
perl5, textproc
Package size
16.4 KiB, 37.0 KiB installed

Description

A plethora of tools exist that operate as filters: they get data from a source, operate on this data, and write possibly modified data to a destination. In the Unix world, these tools can be chained using a technique called pipelining, where the output of one filter is connected to the input of another filter. Some non-Unix worlds are reported to have similar provisions.

To create Perl modules for filter functionality seems trivial at first. Just open the input file, read and process it, and write output to a destination file. But for really reusable modules this approach is too simple. A reusable module should not read and write files itself, but rely on the calling program to provide input as well as to handle the output.

Text::Filter is a base class for modules that have in common that they process text lines by reading from some source (usually a file), manipulating the contents and writing something back to some destination (usually some other file).

This module can be used 'as is', but its real power shows when used to derive modules from it.

-Anton <[email protected]>

In the other systems

SystemPortVersion
DragonFlytextproc/p5-Text-Filter1.10_1
FreeBSDtextproc/p5-Text-Filter1.10_1
HardenedBSDtextproc/p5-Text-Filter1.10_1
GhostBSDtextproc/p5-Text-Filter1.10_1

Install

Binary package:

pkg install p5-Text-Filter

From DPorts:

cd /usr/dports/textproc/p5-Text-Filter && make install clean

Dependencies

Run dependencies 1

No port depends on this one.