in reply to search =~ for /'s

My suggestion would be to add the slash regardless of what they have. In most reasonable operating systems, /home/thor/testdir is the same as /home/thor//testdir. YMMV, though.

thor