in reply to filtering folder path using regex.

Another core module that can be used for this purpose is: File::Basename.

However, File::Spec looks a lot more powerful!

Cheers