Can you answer MonkeySage's question? Whether you can perform the task with an FTP client will help figure out the problem.
Also, can you tell us what you know about the server? Is it yours? What platform is it?
Jordan
[edit:] I wasn't very clear -- what I mean is, try his script locally and try putting something to the shared UK server with your username and pass you are using in your current script -- that way you'll know it's not a conflict between the Net::FTP module and the UK server, because his script uses Net::FTP; then the next place to look if it works would be at your current script and make sure you're doing the same things he does in his. [/edit]
I was just being a dumb (something or other). I was using www.domain.co.uk to connect - which apparently worked to connect but would not allow me to issue ftp commands like "put".
Changed the www for ftp.domain.co.uk and "hey presto" I can now "put" files on the UK server. Many thanks for pointing me in the right direction!
Monkeysage - pretty cool little perl script - I will have to "assimilate" it into my own script. I just love those guys who write scripts and put in proper error checking - unlike an old quick'n'dirty hacker like me!
Chris.
I normally run my script with:
$ftp = Net::FTP->new($hostname{$host}, Debug => 0);
but as soon as things go wrong change the value of Debug from 0 to 1. Lots of output that may help identify the problem.
Of course this should be a command line option, but this works for me.