Change 17852: File::Copy should only warn if there's something to warn about

[email protected] (Chris Nandor) Sun, 8 Sep 2002 18:37:13 -0400
Newsgroups perl.perl5.changes.mac
Message-ID <p05111b0bb9a18182ab82@[10.0.1.177]>
Change 17852 by pudge@pudge-mobile on 2002/09/08 04:32:53

	File::Copy should only warn if there's something to warn about

Affected files ...

.... //depot/maint-5.6/macperl/lib/File/Copy.pm#4 edit

Differences ...

==== //depot/maint-5.6/macperl/lib/File/Copy.pm#4 (text) ====
Index: macperl/lib/File/Copy.pm
--- macperl/lib/File/Copy.pm#3~16473~	Tue May  7 20:52:28 2002
+++ macperl/lib/File/Copy.pm	Sat Sep  7 21:32:53 2002
@@ -35,7 +35,7 @@
 if ($^O eq 'MacOS') {
 	$macfiles = eval { require Mac::MoreFiles };
 	warn 'Mac::MoreFiles could not be loaded; using non-native syscopy'
-		if $^W;
+		if $@ && $^W;
 }
 
 sub _catname {
End of Patch.