note
hippo
<p>Some thoughts:</p>
<ul>
<li><c>s/foore/barstring/</c> works on $_ in isolation, but you're not setting $_, even implicitly.</li>
<li>You set <c>$doc</c> but never subsequently refer to it.</li>
<li>You <c>use IO::File</c> but never subsequently refer to it.</li>
<li>You alternate between slashes and hashes for regexp delimiters for no apparent reason</li>
<li>Looks like your input XML is not valid XML</li>
<li>and finally, you both use an XML parser and then attempt to just regexp your way through the string. Pick one, not both.</li>
</ul>
1061075
1061075