in reply to How to create the varibles with the file names
my @txt_files = glob('/data/*.txt'); [download]