projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
973655a
)
Avoid a "Subroutine Cwd::fastcwd redefined" warning when
Rafael Garcia-Suarez [Sat, 16 Aug 2003 19:54:43 +0000 (19:54 +0000)]
loading Cwd. Undefing &Cwd::fastcwd beforehand is inconvenient
because loading the XS part of Cwd might fail.
p4raw-id: //depot/perl@20736
lib/Cwd.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Cwd.pm
b/lib/Cwd.pm
index
2b5f85e
..
305cc60
100644
(file)
--- a/
lib/Cwd.pm
+++ b/
lib/Cwd.pm
@@
-167,7
+167,7
@@
if ($^O eq 'os2' && defined &sys_cwd && defined &sys_abspath) {
eval {
require XSLoader;
- no warnings 'redefine';
+ local $^W = 0;
XSLoader::load('Cwd');
};