http://qs321.pair.com?node_id=11121990


in reply to Re^2: Finding sum of numbers and storing it an Array
in thread Finding sum of numbers and storing it an Array

You can replace the map with a simple for loop.

my @array; push @array, $_ / $totalSum for @nums;

🦛