in reply to Using variable in substitute regex producing odd results
... $line =~ s/\Q$delimiter/\,/g; ... [download]