rhxk has asked for the wisdom of the Perl Monks concerning the following question:
Lets say:
@array = ("12G","1G30G,"13G24G");
Is there a system variable that would give the number of G's inside the array?
If not, what's the best way I can get it?
In this case, the result will be 5.
thanx...
Edit by BazB: remove pre tags and add normal formatting.
Retitle from "how many letters in a string".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Counting recurring characters within a list of strings.
by sleepingsquirrel (Chaplain) on May 28, 2004 at 20:33 UTC | |
|
Re: Counting recurring characters within a list of strings.
by Limbic~Region (Chancellor) on May 28, 2004 at 20:38 UTC | |
|
Re: Counting recurring characters within a list of strings.
by Anonymous Monk on May 28, 2004 at 20:36 UTC | |
|
Re: Counting recurring characters within a list of strings.
by cLive ;-) (Prior) on May 28, 2004 at 20:36 UTC | |
|
Re: Counting recurring characters within a list of strings.
by pzbagel (Chaplain) on May 28, 2004 at 20:28 UTC | |
|
Re: Counting recurring characters within a list of strings.
by mifflin (Curate) on May 28, 2004 at 20:33 UTC |