develooper Front page | perl.beginners | Postings from August 2009

Re: removing a 'tee'd file handles going forward

Thread Previous | Thread Next
From:
Jenda Krynicky
Date:
August 26, 2009 11:51
Subject:
Re: removing a 'tee'd file handles going forward
Message ID:
4A95A037.16494.5EF92EB@Jenda.Krynicky.cz
From: Tony Esposito <tony1234567893@yahoo.co.uk>
> Agreed.  But the program flow would be such (pseudo-code):
>
> (1) print STDOUT
>     print STDERR
> (2) now print to both in one print statement
>
> (3) now go back to
>     print STDOUT
>     print STDERR
>
> I want to switch back-and-forth between being able to print to STDOUT,
> STDERR with one 'print' statement and then back ...
>
> HTH

I said you can! And you do not have to destroy the tee and then
create it again. Once you create the tee you can print to STDOUT,
STDERR or the teen any time you want, as many times you want and in
any order you want.

Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About