Perl-Sensitive Sunglasses | |
PerlMonks |
replace a character based on rule fileby lakssreedhar (Acolyte) |
on Dec 04, 2012 at 06:47 UTC ( [id://1007016]=perlquestion: print w/replies, xml ) | Need Help?? |
lakssreedhar has asked for the wisdom of the Perl Monks concerning the following question: i have a file with words door,name,fame,dad,naming and so on.I have a rule file that whenever 'na' is followed by letter m then the letter m should be replaced by letter d and the whole word should be as na+d.so the output should be door,na+de,fame,dad,na+ding.The code below doesnt seems to work.
Back to
Seekers of Perl Wisdom
|
|