Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't locate object method quit via package "ftp"

Status
Not open for further replies.

hacox

Programmer
Jun 4, 2002
10
US
I am receiving this error message for the ftp->quit() command in this script. I have checked the versions of the FTP module and they are the same as what it is cpan.org. What else can I check to fix this?

Thanks!


use Net::FTP;
$ftp = Net::FTP->new($server); # contact server
if ($ftp == NULL)
{
print "Could not connect to server.\n";
exit(9);
}
if ($ftp->login($user, $pass)) # login
{
@ftpList=$ftp->ls("Carriers/maeu/Outbound");
print "ftp ls @ftpList\n";
@ftpList=$ftp->ls("Carriers/maeu/Outbound/NZMP");
print "ftp ls @ftpList\n";
}
else
{
print "Could not login with user, $user and password, $password.\n";
exit(7);
}
ftp->quit();
 
never mind I found it I forgot my $ sign...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top