in reply to Read a list of files into an array
use FileSystemObjects::Directory; my $d = FileSystemObjects::Directory->new( '/root/dir' ); my @f = $d->files( -mask => "*.txt" ); [download]