This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
973655a
)
Avoid a "Subroutine Cwd::fastcwd redefined" warning when
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Sat, 16 Aug 2003 19:54:43 +0000
(19:54 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
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');
};