in reply to How to count substrings in an array?
my $count = 0; $count += map /$substring/g, @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to count substrings in an array?
by AnomalousMonk (Archbishop) on Feb 03, 2013 at 11:16 UTC | |
by BrowserUk (Patriarch) on Feb 03, 2013 at 11:32 UTC |