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


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

That expansive map statement is rather extravagant, given ...

my $count = scalar map { /AA/g } @dipept;

... would produce the same result. Am I missing something?