if($folder_path=~/$sourcedir/){ $folder_path=~s/"$sourcedir"/Eitv9/; print "\n$folder_path/$file";}