There's more than one way to do things | |
PerlMonks |
Re^3: On the rejected additions to List::Utilby ikegami (Patriarch) |
on May 06, 2009 at 17:04 UTC ( [id://762329]=note: print w/replies, xml ) | Need Help?? |
Kids learn the average is the sum divided by the count at a young age, so it's definitely readable. As for conciseness, sum(@list)/@list is really not that far off from avg(@list) Nothing is stopping you from putting that expression in a sub if you think it's not readable or concise enough.
In Section
Meditations
|
|