perlguru22 has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys I am taking an intro to scripting languages and we are using perl but I seem to be stuck in this problem.
"Find the average of the numbers in an array (@nums) of unknown length.
I know it starts something like this
@nums = ();
But I don't know where to go from there. I was hoping someone could guide me. Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Help with arrays
by 2teez (Vicar) on Sep 22, 2012 at 04:19 UTC | |
by perlguru22 (Acolyte) on Sep 22, 2012 at 04:34 UTC | |
by roboticus (Chancellor) on Sep 22, 2012 at 12:58 UTC | |
by Rohit Jain (Sexton) on Sep 22, 2012 at 05:55 UTC | |
by perlguru22 (Acolyte) on Sep 22, 2012 at 04:38 UTC | |
by fluffyvoidwarrior (Monk) on Sep 22, 2012 at 05:01 UTC | |
by 2teez (Vicar) on Sep 22, 2012 at 04:53 UTC | |
by Anonymous Monk on Sep 22, 2012 at 05:06 UTC | |
by Anonymous Monk on Sep 22, 2012 at 07:26 UTC | |
by perlguru22 (Acolyte) on Sep 22, 2012 at 05:09 UTC | |
by smeezekitty (Novice) on Sep 22, 2012 at 05:29 UTC | |
by MidLifeXis (Monsignor) on Sep 24, 2012 at 13:05 UTC | |
by perlguru22 (Acolyte) on Sep 22, 2012 at 05:33 UTC | |
by 2teez (Vicar) on Sep 22, 2012 at 05:52 UTC | |
Re: Help with arrays
by Kenosis (Priest) on Sep 22, 2012 at 06:01 UTC | |
by perlguru22 (Acolyte) on Sep 22, 2012 at 06:27 UTC | |
by Kenosis (Priest) on Sep 22, 2012 at 06:37 UTC | |
by Kenosis (Priest) on Sep 22, 2012 at 06:42 UTC |
Back to
Seekers of Perl Wisdom