Upgrade to PathTools 3.07
[p5sagit/p5-mst-13.2.git] / lib / File / Copy.pm
index a01192b..a43a6c6 100644 (file)
@@ -24,7 +24,7 @@ sub mv;
 # package has not yet been updated to work with Perl 5.004, and so it
 # would be a Bad Thing for the CPAN module to grab it and replace this
 # module.  Therefore, we set this module's version higher than 2.0.
-$VERSION = '2.07';
+$VERSION = '2.08';
 
 require Exporter;
 @ISA = qw(Exporter);
@@ -78,7 +78,7 @@ sub copy {
     }
 
     if ((($Config{d_symlink} && $Config{d_readlink}) || $Config{d_link}) &&
-       !($^O eq 'Win32' || $^O eq 'os2' || $^O eq 'vms')) {
+       !($^O eq 'MSWin32' || $^O eq 'os2' || $^O eq 'vms')) {
        my @fs = stat($from);
        if (@fs) {
            my @ts = stat($to);
@@ -274,11 +274,10 @@ File::Copy - Copy files or filehandles
        copy("Copy.pm",\*STDOUT);
        move("/dev1/fileA","/dev2/fileB");
 
-       use POSIX;
-       use File::Copy cp;
+       use File::Copy "cp";
 
        $n = FileHandle->new("/a/file","r");
-       cp($n,"x");'
+       cp($n,"x");
 
 =head1 DESCRIPTION