in reply to Re: counting inside the loop
in thread counting inside the loop
$count=($str=~ tr/($t1)//);
if $t1 has ab. i just want to count how many times ab is their in $str. together. not as seperately 'a' 'b'.
What can be done for that..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: counting inside the loop
by Anonymous Monk on Jul 01, 2011 at 11:27 UTC | |
by sarvan (Sexton) on Jul 04, 2011 at 05:19 UTC | |
by Anonymous Monk on Jul 04, 2011 at 06:22 UTC |