|No such thing as a small change|
counting inside the loopby sarvan (Sexton)
|on Jun 30, 2011 at 12:38 UTC||Need Help??|
sarvan has asked for the wisdom of the Perl Monks concerning the following question:
I have been suggested early on my script. Now the script work in the manner i wanted it. I want a slight modification to that.
In addition to this i want to count the maximum no.of occurence for each matched combination(three elements).
i.e for eg. if "is a guide" appears two times in $str2. its maximum reference count is 2. likewise i want to compute for all the combinations.my $count=($str2=~ tr/$t1//);
this counts the no. of times $t1 appeared. But i don't know where to put this inside the loop, so that it can be calculated for all the dynamic values of $t1.Need help in this.. Thanks..