Gossamer Forum
Home : General : Perl Programming :

Net::FTP

Quote Reply
Net::FTP
Could someone please explain to me why when running this piece of code via Telnet it gives me an error;

use Net::FTP;

$ftp = Net::FTP->new("$ftpaddress", Debug => 0);
$ftp->login("username",'password');
$ftp->site("CHMOD 666 links.db");
$ftp->quit;


The error i get when running via TelNet is;

"use" not allowed in expression at chmod.cgi line 5, near ""
syntax error at chmod.cgi line 5, near "use Net::FTP"
Execution of chmod.cgi aborted due to compilation errors.

PLEASE HELP!!!

Thanks

Andy


webmaster@ace-installer.com
http://www.ace-installer.com
Subject Author Views Date
Thread Net::FTP Andy 5414 Mar 27, 2001, 10:59 PM
Thread Re: Net::FTP
Paul 5293 Mar 28, 2001, 5:14 AM
Post Re: Net::FTP
Andy 5211 Mar 28, 2001, 10:26 PM
Post Re: Net::FTP
jsu 5201 Mar 29, 2001, 12:26 AM
Thread Re: Net::FTP
Andy 5216 Mar 29, 2001, 1:53 AM
Thread Re: Net::FTP
Alex 5170 Apr 3, 2001, 1:19 PM
Thread Re: Net::FTP
Paul 5183 Apr 3, 2001, 1:24 PM
Post Re: Net::FTP
Alex 5176 Apr 3, 2001, 1:34 PM