good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: resetting a foreach loop!by pryrt (Abbot) |
on Nov 16, 2017 at 22:13 UTC ( [id://1203627]=note: print w/replies, xml ) | Need Help?? |
Change average() to use its parameters, not the top-level @array directly; then you can limit @array to the appropriate context:
edit: fixed indenting for readability
In Section
Seekers of Perl Wisdom
|
|