Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 7bd8296cf1dabe0f5ed9ff35b8f0d5e3

perl-PerlIO-Util-0.710.0-1.mga1.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: