o_chfa has asked for the wisdom of the Perl Monks concerning the following question:

following error message

 Can't locate object method "new" via package "Net::FTP::A" at /usr/perl5/5.00503/Net/FTP.pm line 959.

was produced by :

use Net::FTP; my $ftp = Net::FTP->new("128.1.141.29") or die "Cannot connect to 128. +1.141.29"; $ftp->login("bogie", #0tB\@') or die $ftp->message; my $dir = $ftp->pwd() or die $ftp->message;; print $dir, "\n"; $ftp->get("err"); print $ftp, "\n"; $ftp->quit;
what shall I do ???????

Edited by Arunbear: Changed title from 'Net::FTP', as per Monastery guidelines

Replies are listed 'Best First'.
Re: Error with Net::FTP - Can't locate Net::FTP::A
by castaway (Parson) on May 02, 2005 at 08:19 UTC
    Check to see if you have Net::FTP properly installed. It consists of the Net/FTP.pm file, as well as Net/FTP/A.pm, E.pm, I.pm, L.pm and dataconn.pm. If you don't have all those (and I suspect not), then reinstall libnet.

    To find out where your Net::FTP is installed, try: perldoc -l Net::FTP (Or look in/near the directory your error message gave ,)

    C.

      These hints helped thanx a lot o_chfa
Re: Error with Net::FTP - Can't locate Net::FTP::A
by gman (Friar) on May 02, 2005 at 16:58 UTC
    I think you’re missing a single quote in front of your password
    Probably just in your post, but thought it was worth mentioning.
    $ftp->login("bogie", #0tB\@') or die $ftp->message;