in reply to Put "ls" in array

Have a look at File::Next or alternativeley use readdir ...

pelagic