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

You might find glob() usefull. Or maybe it's alias <*>. This let's you get the current directory contents with something like:
my @dir = <*>;

You can use the glob() function to get the contents of a directory other than the current directory.

Have a look at perldoc -f glob for more info.

Ira,

"So... What do all these little arrows mean?"
~unknown