Name : perl-Text-OutputFilter
| |
Version : 0.25
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 18:12:19
|
Group : Unspecified
| Source RPM : perl-Text-OutputFilter-0.25-lp154.1.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Filter and modify output
|
Description :
This interface enables some post-processing on output streams, like adding a left margin.
The tied filehandle is opened unbuffered, but the output is line buffered. The \'tie\' takes three optional arguments:
* Left Margin
The left margin must be a positive integer and defaults to \'4\' spaces.
* Output Stream
The output stream must be an already open stream, with writing enabled. The default is \'*STDOUT\'. All input methods on the new stream are disabled. If a reference to a scalar is passed, it will be opened as PerlIO::scalar - in-memory IO, scalar IO. No checks performed to see if your perl supports it. If you want it, and your perl does not, upgrade.
Using \'binmode ()\' on the new stream is allowed and supported.
OPEN, SEEK, and WRITE are not (yet) implemented.
* Line Modifying Function
The output is line buffered, to enable line-modifier functions. The line (without newline) is passed as the only argument to the sub-ref, whose output is printed after the prefix from the first argument. A newline is printed after the sub-ref\'s output.
To *filter* a line, as in _remove_ it from the stream, make the sub return _undef_.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |