http://www.perlmonks.org?node_id=1007199

lakssreedhar has asked for the wisdom of the Perl Monks concerning the following question:

there are 2 files.first file amayaM souraM kamalZ second file amayamAn vismayamAn souramA kamalAni want the code to do a partial character by character match between 2 files until a non matching character occurs and when the character does not match we need to split the second file using + symbol as shown in output. so the output should be amaya+mAn soura+mA kamal+Ani