You might also be interested in looking at the File:: series
of modules. Several come with Activestate which may be of
use.
File::Spec is supposed to do lots of thing
portably, but I didn't see what you wanted there so
File::Glob may work better. Or better yet just
use
opendir(FOO,$dirname); @files = readdir(FOO); closedir(FOO);