Packages / openSUSE Tumbleweed / Source / Development/Libraries/Perl / perl-IO-Tee

Source Package: perl-IO-Tee (0.66-1.26)

Multiplex output to multiple output handles

'IO::Tee' objects can be used to multiplex input and output in two different ways. The first way is to multiplex output to zero or more output handles. The 'IO::Tee' constructor, given a list of output handles, returns a tied handle that can be written to. When written to (using print or printf), the 'IO::Tee' object multiplexes the output to the list of handles originally passed to the constructor. As a shortcut, you can also directly pass a string or an array reference to the constructor, in which case 'IO::File::new' is called for you with the specified argument or arguments. The second way is to multiplex input from one input handle to zero or more output handles as it is being read. The 'IO::Tee' constructor, given an input handle followed by a list of output handles, returns a tied handle that can be read from as well as written to. When written to, the 'IO::Tee' object multiplexes the output to all handles passed to the constructor, as described in the previous paragraph. When read from, the 'IO::Tee' object reads from the input handle given as the first argument to the 'IO::Tee' constructor, then writes any data read to the output handles given as the remaining arguments to the constructor. The 'IO::Tee' class supports certain 'IO::Handle' and 'IO::File' methods related to input and output. In particular, the following methods will iterate themselves over all handles associated with the 'IO::Tee' object, and return TRUE indicating success if and only if all associated handles returned TRUE indicating success: * close * truncate * write * syswrite * format_write * formline * fcntl * ioctl * flush * clearerr * seek The following methods perform input multiplexing as described above: * read * sysread * readline * getc * gets * eof * getline * getlines The following methods can be used to set (but not retrieve) the current values of output-related state variables on all associated handles: * autoflush * output_field_separator * output_record_separator * format_page_number * format_lines_per_page * format_lines_left * format_name * format_top_name * format_line_break_characters * format_formfeed The following methods are directly passed on to the input handle given as the first argument to the 'IO::Tee' constructor: * input_record_separator * input_line_number Note that the return value of input multiplexing methods (such as 'print') is always the return value of the input action, not the return value of subsequent output actions. In particular, no error is indicated by the return value if the input action itself succeeds but subsequent output multiplexing fails.

Package information

Homepage
[https://metacpan.org/release/IO-Tee]
License
Artistic-1.0 OR GPL-1.0-or-later
Downstream package maintainer
Unknown: not reported in the indexed source

The following binary packages are built from this source package:

Known vulnerabilities

No matching advisories in the tracked sources.

Last synced:

[CVE catalog]

Sources

  • Authoritative source; repository metadata signature verified

    Signature evidence

    tumbleweed-oss-multiarch:4db10cdde3ad82c7e22be35753c9e164b4bdd30f92db4aee17a0d4c94c5f902f

    Repository-signature verification record
    Signed-object SHA-256
    4db10cdde3ad82c7e22be35753c9e164b4bdd30f92db4aee17a0d4c94c5f902f
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable