in reply to How to remove an apostrophe?

use File::Basename; ($newname= basename $fullname) =~ tr/'//d;
untested

s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%.+=%;.#_}\&"^"-+%*) +.}%:##%}={~=~:.")&e&&s""`$''`"e