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
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