At 07:07 AM 5/2/2001, you wrote:
>I've written a script to FTP files. I've included the Net::FTP package but
>when I run the script in 2 different machines, I get these 2 error messages:
>
>machine 1
>Can't locate object method "new" via package "Net::FTP::A" at
>/usr/local/lib/per
>l5/5.00503/Net/FTP/A.pm line 18.
>
>
>machine2
>Can't locate Net/FTP.pm in @INC (@INC contains:
>/usr/local/lib/perl5.004-04/sun4
>-solaris/5.00404 /usr/local/lib/perl5.004-04
>/usr/local/lib/perl5.004-04/site_pe
>rl/sun4-solaris /usr/local/lib/perl5.004-04/site_perl /usr/local/lib/perl5
>.) at
>  unix_ftp.pl line 3.
>
>Any ideas?


On machine one, it doesn't look like you are calling the constructor 
correctly.  But we need some code to figure that out.

On machine two, looks like Net::FTP isn't installed.  Grab it of CPAN, fix 
the problem in the first script, and you should be ok.  Check the 
documentation that comes with the module for some examples of how to use it.

Thank you for your time,

Sean.

Reply via email to