Fix typo introduced in 4c38808d92b95.
authorCraig A. Berry <craigberry@mac.com>
Sat, 21 Dec 2013 14:28:23 +0000 (08:28 -0600)
committerCraig A. Berry <craigberry@mac.com>
Sat, 21 Dec 2013 14:28:23 +0000 (08:28 -0600)
The variable name is '$^O' not '-$^O'.  This meant File::Copy::move
didn't put the file in the current working directory when the to
argument had no path component.

lib/File/Copy.pm

index 71601f3..520752c 100644 (file)
@@ -332,7 +332,7 @@ sub _move {
     }
 
     my $rename_to = $to;
-    if (-$^O eq 'VMS' && -e $from) {
+    if ($^O eq 'VMS' && -e $from) {
 
         if (! -d $to && ! -d $from) {