in reply to How can I re-open STDOUT?
Cheers - L~R#!/usr/bin/perl -w use strict; open (SAVEOUT, ">&STDOUT") or die "Unable to save STDOUT : $!"; open (STDOUT, ">my_log") or die "Error with redirecting STDOUT : $!"; # More code passes open (STDOUT, ">&SAVEOUT") or die "Unable to restore STDOUT : $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How can I re-open STDOUT?
by Courage (Parson) on Aug 07, 2003 at 12:42 UTC |