Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > c43ed90bf79bc560dc1fe7f2109a15c3

perl-PerlIO-Util-0.720.0-18.mga7.src.rpm

Description:

'PerlIO::tee' provides a multiplex output stream like 'tee(1)'. It makes a
filehandle write to one or more files (or scalars via the ':scalar' layer)
at the same time.

You can use 'push_layer()' (defined in 'PerlIO::Util') to add a _source_ to
a filehandle. The _source_ may be a file name, a scalar reference, or a
filehandle. For example:

$fh->push_layer(tee => $file); # meaning "> $file"
$fh->push_layer(tee => ">>$file");# append mode
$fh->push_layer(tee => \$scalar); # via :scalar
$fh->push_layer(tee => \*OUT); # shallow copy, not duplication

Generated packages:

Other version of this rpm: