Space separated values sum
Program that sums all the values (including big positive/negative integers)
Copy this code and paste it in your HTML
use strict;
use warnings;
use Math::BigInt;
while(<>)
{
s/^ +//g;
my $elemento;
my $sum = Math::BigInt->new('0');
{
$sum->badd(Math::BigInt->new($elemento));
}
$sum=0;
}
Report this snippet
Comments
Subscribe to comments