in reply to FTP over TLS/SSL
What about just using sftp? It's a standard implementation of ftp over ssl... but not exactly the same thing as just tunneling ftp through a prebuilt ssl socket (in much the same way that ssh is basically rsh over ssl and https is http over ssl). Many (most / all? I wouldn't want to over-state) ssh daemons function as sftp daemons as well, and there are tons of free sftp clients out there with which perl can work.
------------ :Wq Not an editor command: Wq