in reply to How to insert a "/" within a string?

Use the g-modifier of the substitution operator. For example: If
my $string = 'ACOCOB';
then

$string =~ s(CO)(C/O)g; print "$string\n";
prints AC/OC/OB

-- 
Ronald Fischer <ynnor@mm.st>