N
Naren
Hello grp,
I am searching for a perfect match of a string in a line and want to
replace all occurances of the string with a new string and also want a count
of the replacements
What I mean by a perfect match is that it should not be a substring of any
other string,should be independent.
$a is my string to be searched
$cnt = ($line =~ s/$a\w+/$tobereplaceed)
I dont get a correct output.
PLz help
Thaanx in advance
Rgds,
Naren.
I am searching for a perfect match of a string in a line and want to
replace all occurances of the string with a new string and also want a count
of the replacements
What I mean by a perfect match is that it should not be a substring of any
other string,should be independent.
$a is my string to be searched
$cnt = ($line =~ s/$a\w+/$tobereplaceed)
I dont get a correct output.
PLz help
Thaanx in advance
Rgds,
Naren.