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


in reply to adding items, but with interim results

That's fairly trivial and can be done using map. I don't want to spoil you a joy of discovery, so not giving the answer.

  • Comment on Re: adding items, but with interim results

Replies are listed 'Best First'.
Re^2: adding items, but with interim results
by LanX (Archbishop) on Mar 30, 2013 at 17:24 UTC
    > That's fairly trivial and can be done using map. I don't want to spoil you a joy of discovery, so not giving the answer.

    Agreed!

    (Hint  $sum+=$_ ;-)

    Cheers Rolf

    ( addicted to the Perl Programming Language)