Ok, I am ALMOST there...
I have the 'ls' going to a array and getting close to what I would expect. Currently, it is ignoring hidden files and giving filenames. What I need is to get the size of each file without all the atime, mtime, perms etc... that appears to be default in SFTP-Foreign.
NOTE: I am only using 'names_only' as a proof of concept in case that negates any file size arguments I would put in there.
Does anyone know how to get the file size as an argument in the string I am using?
my @newarray = @{ $sftp->ls('/home/ftptest/inbound', names_only => 1,
+no_wanted => qr/^\./ )};