Thanks for all your ideas ! They've helped me quite a bit and I'm still working on the script...
Here are a couple answers to your remarks :
First of all, I'm not prompting the user for a path : when a change occurs on the drive, a function returns the path where that change occured...
Yes I do need to check for capital letters - actually, I noticed when comparing 2 paths that were the same except for the drive letter - in one case I had c:\, in the other C:\. So I rewrote my if statement to if (uc($folder) eq uc($wantedF$_)).
Furthermore, as for the "c:/temp" and the "c:\temp" paths, I also rewrote a bit of code that searches for \\ and swaps it for \/ :
You ask whether the current folder can be banned : yes it can but it's irrelevant. Banning in this case means not considering any changes happening in that folder, hence ignoring it. This is not a security issue...
As for the regex, yeah I must admit it, I totally missed it - don't know what I was thinking... Your version is the one intended. Thanks !
Thanks so much for your help and time - it's been quite useful to me...