$ perldoc -q substring Found in /home/nick/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/pod/perlfaq4.pod How can I count the number of occurrences of a substring within a string? ...