I know this should not be hard:
trying to set up a perl script to go through my templates & programmatically change something:
<item name="This"><value>ABCDEF</value></item>
or
<item name="This">
<value>ABCDEF</value>
</item>
replacing ABCDEF with something else
(and only want to replace ABCDEF associated with "This")
What I had was:
$marker='"This"><value>';
$lookingfor=$marker."ABCEDF";
$replacewith=$marker."FEDCBA";
my
@text = map {$happened = /$looking_for/$replacewith/; $_; }
Works fine when there is no whitespace (1st example) but misses the second.
Tips/pointers/RTFMs appreciated
Andy