On line 19 you declare my $sftp; but then on line 20 you assign to $stfp = Net::SFTP::Foreign->new. Note the transposition of f and t.
As an aside, this is one the benefits of use strict; it will catch these kinds of spelling errors at compile time.
In reply to Re^2: how to transfer a set of files in a directory from linux server(remote machine) to windows server(local machine)
by sn1987a
in thread how to transfer a set of files in a directory from linux server(remote machine) to windows server(local machine)
by mah_strict
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |