in reply to RE: Count String Occurrences
in thread Count String Occurrences
my $string = "abcabcacbabc"; my @num_times = split(/abc/, "$string "); print scalar @num_times -1, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Count String Occurrences
by Lee (Initiate) on Mar 24, 2000 at 22:31 UTC | |
by chromatic (Archbishop) on Mar 24, 2000 at 22:59 UTC |