Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 8b770d36d1718c87c381e887ae0439bd

perl-PerlIO-Util-0.720.0-9.mga5.i586.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

Sources packages:

Other version of this rpm: