in reply to How to use long strings...

Assuming there's only one $left_string and only one $right_string per line, you might want to do something like:
my %count; $count {$1} ++ while $content =~ /\Q$left_string\E(.*)\Q$right_str +ing\E/g;

I haven't tested it though.

Abigail