Are you sure your login was successful? You're not checking for login success. You're also not checking for cwd() success. So the fact is that the preceeding script could have failed at login(), or at cwd(), and you wouldn't know, because you're not checking their success.
Your 'or die...' check on put() is also pretty unhelpful, because it's not telling you the important information held in $ftpobj->message().
This is all covered in synopsis of the POD for Net::FTP. Always read a module's POD before using it. ;) ....it's like reading the instructions before attempting to put together ready-to-assemble furniture.
Dave
In reply to Re: FTP script
by davido
in thread FTP script
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |