in reply to Populating an array with contents of a directory.

glob or readdir, for example:

my $dir = '/path/to'; my @names = glob "$dir/*";

After Compline,
Zaxo