Name

sum

Synopsis

sum @LIST

Returns the sum of all items in the list. Note that sum deals only with numerical list items and will ignore any other list items. For example:

my @ll = qw(1 3 5 nate Person pizza man carl_everett dinosaur 6.54);
my $sum_of_list = sum(@ll);
print "$sum_of_list
"; # Prints '15.54'

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.218.132