Give you an example to use net :: ftp use net :: ftp; $ host = "ftp.anonftp.net"; MY $ ftp = net :: ftp-> new ($ host); or die "Cannot connect to FTP Server $! / N "; # Connect FTP Server $ ftp-> login (" anonymous "," me/@somewherefake.com "); # Enter the username password. $ ftp-> cwd (" / pub "); # Move to / PUB directory $ ftp-> get ("test.txt"); # Download Test.txt file $ ftp-> quit;