+
+ # At this point, file is in 'blib' and by default
+ # has mode a-w. Therefore, must change permission
+ # to make it writable.
+ my $old_perm;
+ if ($^O ne 'MSWin32') {
+ $old_perm = (stat $pathfile)[2] & 07777;
+ my $new_perm = $old_perm | 0200;
+ chmod $new_perm, $pathfile;
+ }