Re: Can Perl redirect STDOUT to file AND to command window?
- From: "Purl Gurl" <purlgurl@xxxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 23:56:33 GMT
rcm228@xxxxxxxxx wrote:
> I have done standard Perl STDOUT redirection to a pipe and to a file,
> however, I have been searching for a way to redirect STDOUT to a file
> and to the command window at the same time. So far, no luck - is this
> possible?
Simply print to both.
print OUTFILE "my data";
print "my data";
Purl Gurl
.
- Follow-Ups:
- References:
- Prev by Date: Re: Can Perl redirect STDOUT to file AND to command window?
- Next by Date: Re: string and hash [quite long]
- 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):
Relevant Pages
|