Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: How to insert a "/" within a string?

by bimleshsharma (Beadle)
on Feb 21, 2012 at 11:06 UTC ( #955277=note: print w/replies, xml ) Need Help??

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 (Pope) on Feb 22, 2012 at 00:01 UTC
    Yes, but he intentionally avoided using "/" as a delimiter to avoid "leaning toothpick syndrome".

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955277]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2016-10-20 20:30 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (281 votes). Check out past polls.