in reply to Redirecting STDOUT
I don't use IO::File, but this is a good use of local:
{ local *STDOUT; open( STDOUT, '>/dev/null' ) or die "Cannot redirect STDOUT: $!\n" +; $rc = system( @command ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Redirecting STDOUT
by chip (Curate) on May 02, 2003 at 19:37 UTC |