| Matthew B Tilley 2007-03-29, 8:01 am |
| If you are on a Unix platform, you can use "tee" in your script to
direct output to two places at the same time.=20
- Matt
-----Original Message-----
From: John W. Krahn [mailto:krahnj@telus.net]=20
Sent: Thursday, March 29, 2007 2:17 AM
To: Perl Beginners
Subject: Re: sending output to file and terminal
lakshmi priya wrote:
> Hi all,
Hello,
> I have written a perl script that prints the output to the=20
> terminal. I also want to write the output to a file. So, what I have=20
> done is write the output to a file and then print the file. I was just
> wondering if there any way to write to both - terminal and file at the
same time?
perldoc -q "How do I print to more than one file at once"
John
--
Perl isn't a toolbox, but a small machine shop where you can
special-order
certain sorts of tools at low cost and in short order. -- Larry
Wall
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional
commands, e-mail: beginners-help@perl.org http://learn.perl.org/
|