in reply to Downloading with Perl?

don't want to expose the server credentials

Consider encryption through scp or sftp. Either could be scripted rather and maintain a good level of secrecy.