#You have to tell your script to use the module. use Net::FTP; #Establish a connection to the ftp server (in this case some.host.name) $ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Cannot connect to some.host.name: $@"; #provide the login information to the ftp server $ftp->login("anonymous",'-anonymous@') or die "Cannot login ", $ftp->message; #Change dir to /pub $ftp->cwd("/pub") or die "Cannot change working directory ", $ftp->message; #copy the file from the ftp server to your local dir. $ftp->get("that.file") or die "get failed ", $ftp->message; #End your connection to the ftp server $ftp->quit;