This is my string that has a | in it. #### This is my string that has a \| in it. #### $_ =~ s/\|/\\\|/g; #### $_ =~ s/\{$delim}/\\{$delim}/g;