sub interpolate_nl { my $str = shift; $str =~ s/(?9; is interpolate_nl("a\\b"), "a\\b"; # * is interpolate_nl("a\\nb"), "a\nb"; is interpolate_nl("a\\\\b"), "a\\b"; is interpolate_nl("a\\\\nb"), "a\\nb"; is interpolate_nl("a\\\\\\b"), "a\\\\b"; # * is interpolate_nl("a\\\\\\nb"), "a\\\nb"; is interpolate_nl("a\\\\\\\\b"), "a\\\\b"; is interpolate_nl("a\\\\\\\\nb"), "a\\\\nb"; is interpolate_nl("a\\\\\\\\\\nb"), "a\\\\\nb"; # * \b and all other escapes are unhandled and ignored!