Re: Can Perl redirect STDOUT to file AND to command window?
- From: rcm228@xxxxxxxxx
- Date: 29 Nov 2005 16:17:58 -0800
**** SUMMARY **** (for those on the Google quest)
use strict;
use IO::Tee;
my $tee = IO::Tee->new(\*STDOUT,">out.txt");
select $tee;
print "Hello World\n"; # will print Hello World to both cmd window and
../out.txt
R
.
- References:
- Can Perl redirect STDOUT to file AND to command window?
- From: rcm228
- Re: Can Perl redirect STDOUT to file AND to command window?
- From: usenet
- Re: Can Perl redirect STDOUT to file AND to command window?
- From: rcm228
- Re: Can Perl redirect STDOUT to file AND to command window?
- From: xhoster
- Re: Can Perl redirect STDOUT to file AND to command window?
- From: rcm228
- Can Perl redirect STDOUT to file AND to command window?
- Prev by Date: Re: Can Perl redirect STDOUT to file AND to command window?
- Next by Date: Re: cASE sWITCHING?
- Previous by thread: Re: Can Perl redirect STDOUT to file AND to command window?
- Next by thread: Re: Can Perl redirect STDOUT to file AND to command window?
- Index(es):