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 ); }
In reply to Re: Redirecting STDOUT
by chromatic
in thread Redirecting STDOUT
by mifflin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |