in reply to perl filenames and square brackets

Hi

Are the square-brackets in a directory name? When you recurse into that directory, I suspect glob will interprete the [] in the file path as a character class (I think), not as the path name. You would need to escape.

However, you're better off using a module for this. File::Find is a good place to start, although it's a bit weird in its calling convention. The following node details why this type of recursion can be a bad thing: 18101, and also details how things can go back and forth here in the Monastery {grin}

- j