in reply to how to transfer a set of files in a directory from linux server(remote machine) to windows server(local machine)

ok What about the other error.Even though i have used the Net::SFTP::FOREIGN i am getting a error \" Global symbol "$stfp" requires explicit package name at mah.pl line 20. What does this mean??
  • Comment on Re: how to transfer a set of files in a directory from linux server(remote machine) to windows server(local machine)

Replies are listed 'Best First'.
Re^2: how to transfer a set of files in a directory from linux server(remote machine) to windows server(local machine)
by sn1987a (Curate) on Apr 21, 2014 at 13:33 UTC

    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.