CleanupTasks: Older Perl compat

This commit is contained in:
Brian Fraser
2012-08-15 17:28:52 -03:00
parent 8c963bb007
commit d92c85733e
2 changed files with 4 additions and 4 deletions

View File

@@ -57,9 +57,9 @@ sub DESTROY {
PTDEBUG && _d('Calling cleanup task', $task);
# Temporarily restore STDOUT and STDERR to what they were
# when the object was created
open local *STDOUT, ">&=", $self->{stdout_copy}
open local(*STDOUT), ">&=", $self->{stdout_copy}
if $self->{stdout_copy};
open local *STDERR, ">&=", $self->{stderr_copy}
open local(*STDERR), ">&=", $self->{stderr_copy}
if $self->{stderr_copy};
$task->();
}