in reply to Re^4: FTPSSL Bad file number
in thread FTPSSL Bad file number

This is good info - it clearly shows that the elements of @files are not filenames such as B0000198800028226.xml.enc (which they should be) but rather long listings such as:

-rwxr-xr-x    1 260        410              1571 Mar  5 08:32 B0000198800028226.xml.enc

If you populate @files correctly in the first place then the error messages will disappear.

Replies are listed 'Best First'.
Re^6: FTPSSL Bad file number
by Bettan (Initiate) on Mar 05, 2015 at 10:21 UTC
    Thanks!! Now it works. I use nlst() instead. As I wrote in my first post, I'm not a programmer so I'm glad for all help i get.