Give you an example used net :: ftp

xiaoxiao2021-03-06  108

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;

转载请注明原文地址:https://www.9cbs.com/read-124823.html

New Post(0)