in reply to Removal of A Directory

Hi koakamper,
First, I hope that ReadParse handles responses like '../../../..' . (I know, of course it does, but you'd be surprised at the holes some people leave...)

Second, you have single quotes around your vars, which will keep their values from being used.

Third, it's not clear to me why you're removing two whole trees ($dir_location and $sub_dir), or how $sub_dir is actually a subdirectory of anything. The first argument to rmtree is a list of directories to remove; in your case, you'd get the directory "/home/sites/www.domain.net/web/test/" removed, as well as whatever was in $in{'sub_dir'}. This may not be what you want (might you want to concatenate them?).

Fourth, you don't say how it's "not working". If this is really a quote from your text, the single quotes probably broke it. Looking at the code for File::Path, rmtree uses readdir, which shouldn't have any problems with "dot files" like .htaccess. What's the problem?