In a message dated 2007-5-10 14:00:54 中国标准时间, [EMAIL PROTECTED] writes:
I am having a .pl and .pm meant for a test script It gives result in console window only How can I redirect it to a file This question was replied many times. You may do it like, open LOG,">log.txt" or die $!; open STDOUT,">&LOG"; or using select, open LOG,">log.txt" or die $!; my $old = select LOG; # using LOG as default stdout print ....; select $old; # select back to STDOUT -- Jeff Pang _http://home.arcor.de/jeffpang/_ (http://home.arcor.de/jeffpang/) ************************************** See what's free at http://www.aol.com.