http://www.perlmonks.org?node_id=72305

sickboy has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: sum of matching elements in an array
by dvergin (Monsignor) on Apr 13, 2001 at 11:13 UTC
    sickboy, this has the feel of a homework assignment... But whether or not that is the case, you will receive much better help if you take a stab at the problem yourself.

    For starters, without worrying about producing any Perl code, how would you break this task down into several smaller tasks. Just state the sub-tasks in plain English.

    Once you have this outline, take a shot at the first task and show us your work and describe what happened or where you are stuck and why.

    Working in steps this way, you will receive generous help. Ask us to solve your problem for you and the responses will be a bit less patient.