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


in reply to Re: Obtaining terms in an expansion
in thread Obtaining terms in an expansion

I should have supplied an example of what I was looking for. For example, for N=2:
( arr[0][0] + arr[0][1] ) ( arr[1][0] + arr[1][1] )
what I want to find is
C[0] = arr[0][0] arr[1][0] C[1] = arr[0][0] arr[1][1] C[2] = arr[0][1] arr[1][0] C[3] = arr[0][1] arr[1][1]
It doesn't matter if the coefficients come out in this order, of course.