Hi just try this,
$folder_path =~ s#^\Q$sourcedir\E#Eitv9#i [download]
In reply to Re: shrinking the path by perlsen in thread shrinking the path by prad_intel