http://www.perlmonks.org?node_id=1008385

talon25 has asked for the wisdom of the Perl Monks concerning the following question:

I am using the SFTP::Foreign::Compat module. Recently the other side of the connection migrated to a new server. My process is using the ls command to store the available files. When I log into the server directly, I can see the files, but my script is not getting any information, but seems to be connected just fine. @dir_list is coming back as undef. This was working prior to the other side migrating. Any ideas what would cause the command to stop getting data?

my $remote_dir = "outgoing/"; @dir_list = $bkcy_sftp_h->ls($remote_dir);