Adding to Abigail-II'suggestion (and other monk's intuituon), you can also call your system's command line ftp program from perl the same way. Depending on what you're doing and what command line tools you have available, you may be able to do this in 4 lines. Abigail-II's
system command executes shell stuff. I put backticks just to show another way to do it :)
I don't know about other dB's but MS SQL Server can do FTP and you won't even need Perl. If you happen to be using MS SQL Server, check out Data Transformation Services. Good luck.
use strict;
use warnings;
`isql -S server_name -U login_id -P password -d database -i file`
`ftp -s:file ftp://user:password@ftp.site.com/`
Tim