in reply to Re: Net::FTP insanity
in thread Net::FTP insanity

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.

Replies are listed 'Best First'.
thread++, carry on
by DarthFredd (Novice) on Nov 22, 2007 at 17:05 UTC
    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.
Re^3: Net::FTP insanity
by Gavin (Archbishop) on Nov 22, 2007 at 19:22 UTC
    ++ 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 :)