in reply to Populating an array with contents of a directory.
Try 'readdir' in list context:
opendir(DIR,"/home"); my @array = readdir(DIR);
In Section
Seekers of Perl Wisdom
in reply to Populating an array with contents of a directory.
opendir(DIR,"/home"); my @array = readdir(DIR);