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


in reply to Rook question

Try this:
sub total{ my $sum = shift(@_); foreach (@_){ $sum += $_; } return $sum; }

             "By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."           -Confucius