On 11/30/10 Tue Nov 30, 2010 7:13 AM, "Sooraj S" <soorajspadmanab...@gmail.com> scribbled:
> Hi, > > Can i redirect the output to a file as well as stdout at the same > time...i dont want to use tee command..i want this to be done in my > perl program itself... > > open STDOUT, '>' , 'log.txt''; > > By including this in my perl program i can redirect my output to > log.txt. But i want my output to be displayed on the screen as well.. > Install and use the File::Tee module from CPAN: <http://search.cpan.org/~salva/File-Tee-0.06/lib/File/Tee.pm> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/