Thanks, all, that gives me some great ideas to run with. I'll look into Net::SFTP, since this can't be done with an anonymous FTP session. And thanks for pointing out the lines that are 'just plain wrong' (as I knew there would be) - that's one of the reasons I'm here Seeking Wisdom!