richz has asked for the wisdom of the Perl Monks concerning the following question:
What I need to do in order for the IPC(using pipes) to work is disable buffering. However, I only want to disable buffering if I am launching the script from the Win32 application.
At the top of my perl script I select STDERR as teh default filehandle and I make it hot($| = 1). Since in my scripts I sometimes write to STDOUT I say print STDOUT "hello world\n". I need to make the STDOUT filehandle hot and I have to set STDOUT as the default filehandle so STDERR will no longer be hot. What's the easiest way to get this done? TIA.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Disabling Buffering
by ikegami (Patriarch) on Nov 29, 2004 at 21:31 UTC | |
by diotalevi (Canon) on Nov 30, 2004 at 04:28 UTC | |
|
Re: Disabling Buffering
by zejames (Hermit) on Nov 29, 2004 at 21:35 UTC | |
|
Re: Disabling Buffering
by Fletch (Bishop) on Nov 29, 2004 at 20:44 UTC | |
by richz (Beadle) on Nov 29, 2004 at 20:48 UTC | |
by Fletch (Bishop) on Nov 29, 2004 at 21:18 UTC | |
by bmc_mark (Novice) on Nov 29, 2004 at 21:33 UTC | |
|
Re: Disabling Buffering
by bmc_mark (Novice) on Nov 29, 2004 at 21:36 UTC | |
by bmc_mark (Novice) on Nov 29, 2004 at 21:39 UTC | |
by Jenda (Abbot) on Nov 30, 2004 at 00:15 UTC | |
by richz (Beadle) on Nov 29, 2004 at 21:44 UTC | |
by bmc_mark (Novice) on Nov 29, 2004 at 21:49 UTC | |
by richz (Beadle) on Nov 29, 2004 at 21:41 UTC | |
by bmc_mark (Novice) on Nov 29, 2004 at 21:51 UTC | |
by richz (Beadle) on Nov 29, 2004 at 22:12 UTC | |
by bmc_mark (Novice) on Nov 29, 2004 at 22:17 UTC |