in reply to Re: mod_perl seems to have disappeared the open function
in thread mod_perl seems to have disappeared the open function
If so, I think that means the problem should be solved by using proper scoping.
{ local *STDOUT; local *STDERR; open(STDOUT, ">/dev/null") or $log->die("Unable to redirect STDOUT to dev null: $!"); open(STDERR, ">/dev/null") or $log->die("Unable to redirect STDERR to dev null: $!"); ... }
Why are you redirecting to null (slow!) rather than just closing the file handle?
{ local *STDOUT; local *STDERR; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: mod_perl seems to have disappeared the open function
by talexb (Chancellor) on Nov 28, 2006 at 04:28 UTC |