http://qs321.pair.com?node_id=1152216


in reply to create array of empty files and then match filenames

I don't see in your original where you're interacting with the file system to find these files and put them into the array. The usual advice at this point is to use File::Find or File::Find::Rule. However it's not that hard for a simple case as other monks have shown. Keep the modules in mind for when you need to find things across nested subdirectories and such though.