Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 63eb888855116b780c7bfea8c49118ac

perl-PerlIO-Util-0.720.0-3.mga3.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: