in reply to system() and malformed headers
Turn off buffering:
Try backticks:$| = 1;
Redirect system()'s stdout and stderr to /dev/null:my $output = `touch /usr/tmp/bogus`;
Good luck.system("touch /usr/tmp/bogus > /dev/null 2>&1");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: system() and malformed headers
by dnahman (Initiate) on Jul 09, 2001 at 21:58 UTC |