if you are on UNIX there is a program called tee that outputs both to screen and file:
perl perscriptname.pl | tee outputfile > -----Original Message----- > From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 8:41 AM > To: [EMAIL PROTECTED] > Subject: Re: Outputting to screen and file. > > > run it on cmd-line with > perl perscriptname.pl >outputfile > > > Phumes1 wrote: > > Hi, > > > > I have a Perl script that I need to modify. Presently, its > outputting the > > results to the screen. Is there a way to also > > output the same to a file? > > > > > > > > > +------------------------------------------------------------- > ----------------------+ > > > > Philip Humeniuk > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > > +------------------------------------------------------------- > -----------------------+ > > > > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]