about summary refs log tree commit
diff options
context:
space:
mode:
-rw-r--r--Net/FTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Net/FTP.pm b/Net/FTP.pm
index f871de4..0e31cf3 100644
--- a/Net/FTP.pm
+++ b/Net/FTP.pm
@@ -725,7 +725,7 @@ sub _store_cmd
    # _store_cmd call, figure out if the local file is a regular file(not
    # a pipe, or device) and if so get the file size from stat, and send
    # an ALLO command before sending the STOR, STOU, or APPE command.
-   my $size = -f $local && -s _; # no ALLO if sending data from a pipe
+   my $size = do { local $^W; -f $local && -s _ }; # no ALLO if sending data from a pipe
    $ftp->_ALLO($size) if $size;
   }
  croak("Bad remote filename '$remote'\n")