Probably, your script is quite old, from the days when Net::SFTP::Foreign didn't support password authentication directly and Expect was used to establish the connection and log into the server.
Nowadays, you can pass the user and password to Net::SFTP::Foreign constructor and let it handle everything for you.
In reply to Re^3: sftp connection through perl
by salva
in thread sftp connection through perl
by sandeep_car
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |