lstat FH and -l FH warnings
[p5sagit/p5-mst-13.2.git] / lib / File / Copy.pm
index be184a6..5558baf 100644 (file)
@@ -72,6 +72,7 @@ sub copy {
 
     if ($Config{d_symlink} && $Config{d_readlink} &&
        !($^O eq 'Win32' || $^O eq 'os2' || $^O eq 'vms')) {
+       no warnings 'io'; # don't warn if -l on filehandle
        if ((-e $from && -l $from) || (-e $to && -l $to)) {
            my @fs = stat($from);
            my @ts = stat($to);