laziness, impatience, and hubris | |
PerlMonks |
Net:ftp directoryby Anonymous Monk |
on Apr 18, 2001 at 05:13 UTC ( [id://73408]=note: print w/replies, xml ) | Need Help?? |
<http>
<body>
Let's say instead of Net::ftp, i use ftp.pm since that's all verio seems to have.. here's the module link: http://home.verio.com/support/hosting/perl_modules.cfm So how would the first line of the script look? Should i still use the double colons.. :: ..? Lisa. use NET::FTP; my $hostname='Lisa.com'; my $user='Lisa'; my $password='Lisa'; my $ftp=Net::FTP -> new($hostname) or die ("Connect failed"); $ftp->login($username,$password); $ftp->binary; $ftp->cwd("/pub/uploads"); $ftp->put("mystuff.txt"); $ftp->get("warezlist.txt"); $ftp->quit
In Section
Seekers of Perl Wisdom
|
|