in reply to if (-d$_) failes because of white space
my $dir = "\'$_\'"; [download]
Some OS platforms don't like those spaces (even tho it allows you to put them into the directory names *cough*windows*cough* :-)