Dear wise Monks,
I have an original string and a modified one;
$Original = "AABBCCDDEEFFGGHH"
$Modified = "bCCDdEEFfgGH"
The modified is a substring of original with lower capital letters at some random position. What I would like to do is to find the position of the Modified string within the Original and append the flanking characters that are missing from the modified (in lower letter). The small letters in Modified should stay as they are and sometimes there can be "-" character within the string (like "AABB-AA"). So the output;
$Modified = "aabbCCDdEEFfgGHh"
I thought about using regex than split using this regex then using soft referencing but I think that's overdoing it. BTW what would be the best perl functions to learn to help me with this sort of task in the future?
Thanks all for help.