cLive ;-)# count G's my $count = scalar ( () = ("@array" =~ /(G)/gs)); # or, generic - count letters my $count = scalar ( () = ("@array" =~ /([A-Za-z])/gs));
In reply to Re: Counting recurring characters within a list of strings.
by cLive ;-)
in thread Counting recurring characters within a list of strings.
by rhxk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |