Help for this page
The status returned by the last pipe close, backtick (``) command, successful call to wait() or waitpid(), or from the system() operator.
open my $oldout, '>&STDOUT' or die "Duping STDOUT: $!\n"; open my $olderr, '>&STDERR' or die "Duping STDERR: $!\n"; ... system('sleep 5'); } close $log;