in reply to Local tied FILEHANDLE
"do not work" is never a good description of a problem (if you want help with the problem). Please do what you should always do: Reduce the script to a very, very small script that demonstrates the problem and post the exact script, the exact input and output (including any error messages), and exactly what seems wrong about it to you. (and use strict.pm; and -w)
Anyway, I think local(*STDOUT) would be exactly what you'd want here.
The other suggestion of open(OLDOUT, ">&STDOUT"); doesn't seem like a useful thing to me when dealing with a tied file handle. It is execellent advise when dealing with non-tied file handles, though.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Local tied FILEHANDLE
by gildir (Pilgrim) on Jan 05, 2001 at 19:25 UTC | |
by tilly (Archbishop) on Jan 06, 2001 at 20:23 UTC | |
by tilly (Archbishop) on Jan 05, 2001 at 20:19 UTC |