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


in reply to Re^4: Optimizing a double loop
in thread Optimizing a double loop

You're right on both accounts.

I just used += because from reading your initial question I wasn't sure if you needed absolute values, or add them to an existing array.