Developing a class around net::ftp for doing alternate servers, retries etc.
What is the easiest way to resolve a return on $ftp->dir which returns a array within an array?
I simply want to return an array with the two elements Holdings.txt and new.txt.
What is the easiest way to resolve a return on $ftp->dir which returns a array within an array?
Code:
## return looks like this
my @list=$ftp->dir;
@list = (
[
"total 104",
"drwxr-xr-x 3 root root 512 Feb 20 12:09 .",
"drwxrwxrwx 7 root root 1024 Nov 22 10:13 ..",
"-rw-r----- 1 root root 22536 Nov 22 10:59 Holdings.txt",
"-rw-r----- 1 root root 22536 Nov 22 10:59 new.txt",
]
);
I simply want to return an array with the two elements Holdings.txt and new.txt.