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

Hi, I need to create a site command using NetFTPServer that will ftp a file from source to destination path. When I use 'Use Net::Ftp' in the site command . pl file it is not working, with out using it i cant ftp it? how to do it? Any idea?
  • Comment on Site command to ftp a file using NetFtpServer

Replies are listed 'Best First'.
Re: Site command to ftp a file using NetFtpServer
by moritz (Cardinal) on Apr 14, 2008 at 07:00 UTC
    Perhaps you meant use Net::FTP;? Case is important.

    Are you sure that Net::FTP is actually installed?

Re: Site command to ftp a file using NetFtpServer
by apl (Monsignor) on Apr 14, 2008 at 09:46 UTC
    Can you show us both your code and the error it produced?
Re: Site command to ftp a file using NetFtpServer
by starbolin (Hermit) on Apr 14, 2008 at 15:29 UTC

    First, verify that you have Net::FTP installed by typing:

    perl -MNet::FTP -e 42

    This will report nothing if Net::FTP is installed and will report your path if not installed. If you have Net::FTP installed and are having errors then we really need to see the exact text of those errors to help you. Whereas if you do not have Net::FTP installed you are asking how to download one then see Modules: How to Create, Install, and Use.


    s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}