in reply to How to read contents of directory into an array?

look at  perldoc -f opendir and perldoc -f readdir
This should help you.
----------------------------------- --the good, the bad and the physi-- -----------------------------------