$fname =~ s/(?:$extra)//; [download]
In reply to Re^2: Strange Occurrence in Substitution Statement by choroba in thread Strange Occurrence in Substitution Statement by roho