in reply to Re: How to insert a "/" within a string?
in thread How to insert a "/" within a string?

This will also work...
my $string = 'ACOCOB'; $string =~ s/CO/C\/O/g; print "$string\n";

Replies are listed 'Best First'.
Re^3: How to insert a "/" within a string?
by ikegami (Patriarch) on Feb 22, 2012 at 00:01 UTC
    Yes, but he intentionally avoided using "/" as a delimiter to avoid "leaning toothpick syndrome".