in reply to Net::FTP insanity

From Net::FTP:
put_unique ( LOCAL_FILE , REMOTE_FILE )
Same as put but uses the STOU command.
Have you instead tried using this one? Maybe the STOU command does you better than PUT?

Replies are listed 'Best First'.
Re^2: Net::FTP insanity
by NoSignal (Acolyte) on Nov 22, 2007 at 13:02 UTC
    I am truly the world's dumbest human being.

    I had
    $ftp->put($file, $file) or die "Could not transfer $file to FTP server +: $!\n";
    thinking that I needed to specify the remote file name. When I tried the put_unique() method, it failed with an "invalid number of parameters error". My code now reads:
    $ftp->put($file) or die "Could not transfer $file to FTP server: $@\n" +;
    and it works.

    Maybe it is best that I don't breed...

    Update: The Hash => \*STDERR option is really annoying... :-)

    Thanks for all the help. I'll remember to RTFM and pay better attention to the problem next time.
      This thread was truly a joy to read. NoSignal, you RTFM'd all you could, tried a variety of solutions, and your writing carried a tone of respect. Don't beat yourself for the "simplicity" of the problem, it happens.
      ++ You've got the right attitude to get on here!
      One thing perhaps a change of name I think NoSignal may give the wrong impression to others of your ability :)