dear sir,
i need help in perl program where i want to search a string from paragraph and to convert all the letters in para to X except that string... in this program i have used string matching (regular expresion). i have use like this
but here the string will be changing to 'XXXXX'. i need to convert the other letters..pls help anyone... thanks in advance
i need help in perl program where i want to search a string from paragraph and to convert all the letters in para to X except that string... in this program i have used string matching (regular expresion). i have use like this
Code:
if ($para =~ s/$string/XXXXX/ig) {
open MYFILE, ">result.txt";
select MYFILE;
print $para ;
print "\n\n";
Comment