in reply to using pop and shift to find the sum of an array

How can you find the sum of an array using just shift and pop?
Please, check your last post. Help with arrays
Moreover, your code die with several errors. Please, use warnings and strict
Comments in Perl is started with #
Also check the following Up:
push, pop, shift, unshift

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
  • Comment on Re: using pop and shift to find the sum of an array