projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
af638b8
)
AW: IO::Dir destructor
Dintelmann, Peter [Mon, 2 Jun 2008 14:48:35 +0000 (16:48 +0200)]
From: "Dintelmann, Peter" <Peter.Dintelmann@dresdner-bank.com>
Message-ID: <
3852726AFA94DE4F87E616F13F416A5F0216D9BE
@naimucu1.ffz00k.rootdom.net>
p4raw-id: //depot/perl@33989
lib/DirHandle.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DirHandle.pm
b/lib/DirHandle.pm
index
65250c3
..
e8274a8
100644
(file)
--- a/
lib/DirHandle.pm
+++ b/
lib/DirHandle.pm
@@
-60,6
+60,7
@@
sub DESTROY {
my ($dh) = @_;
# Don't warn about already being closed as it may have been closed
# correctly, or maybe never opened at all.
+ local($., $@, $!, $^E, $?);
no warnings 'io';
closedir($dh);
}