use Net::FTP::Simple qw(get); my($file) = get("ftp://user:password@ftp.somewhere.com/pub/somefile.txt");