in reply to
Add a list of numbers together
Assuming the sum is positive
unpack"%123d*",pack"d*",@_
Assuming the sum fits a signed long
unpack"l",pack"l",unpack"%32d*",pack"d*",@_
Comment on
Re: Add a list of numbers together
Select
or
Download
Code
In Section
Cool Uses for Perl