http://www.perlmonks.org?node_id=1017430


in reply to Re: Using grep in a scalar context
in thread Using grep in a scalar context

My input is a string of amino acid bases, essentially it looks like MHDLKNDHASDRWT and I am counting pair occurrences throughout. MH HD DL LK KN ND are all accepted and should be counted.