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;
🦛
In Section
Seekers of Perl Wisdom