# one line to make sure there is one and only one "/" $target_dir=~s<^/*>;