in reply to shrinking the path

Hi just try this,

$folder_path =~ s#^\Q$sourcedir\E#Eitv9#i