Perl Regex: Adding a symbol in front of another symbol in a string : <p>If i had a string:</p>

<pre><code>my $string = "a/hello/bye/d";
</code></pre>

<p>I would like to add in a "\" symbol infront of every "/" symbol found inside the string. Are there any possible ways to do this?</p>

<p>Example:</p>

<pre><code>$string = "a\/hello\/bye\/d";
</code></pre>
