in reply to how to supress stdout
<code> tags are your friend.
You can get rid of output by overriding the default STDOUT.
open(STDOUT, ">redirect.txt") or die "Problem redirecting STDOUT.";
or make it go away entirely on UNIX-like systems as
open(STDOUT, ">/dev/null") or die "Problem redirecting STDOUT.";
Update:
I should also point out you should make a backup of STDOUT before you redirect, so you can print to it later if you want...
open(STDOUTBACKUP, ">&STDOUT");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to supress stdout
by zwon (Abbot) on Dec 12, 2008 at 18:39 UTC | |
by chuckd (Scribe) on Dec 12, 2008 at 23:36 UTC | |
by parv (Parson) on Dec 13, 2008 at 00:07 UTC | |
by ikegami (Patriarch) on Dec 13, 2008 at 17:26 UTC | |
by parv (Parson) on Dec 14, 2008 at 09:41 UTC | |
| |
by Bloodnok (Vicar) on Dec 13, 2008 at 16:54 UTC | |
by ikegami (Patriarch) on Dec 13, 2008 at 17:02 UTC | |
|