in reply to Net::FTP module not able to download file

You're not checking any of the return values. Perhaps the creation of the object fails. Perhaps the login fails. Perhaps the cwd fails. Perhaps the get fails. We cannot magically deduce what fails.

Since you're not dying, nor exiting with a non-zero value, its exit value will be 0. Perl will not magically exit with a non-zero value because some operation you did did not give you the result you expected.

  • Comment on Re: Net::FTP module not able to download file