Question: Complete the subroutine in the following script so that it returns a sum of all numbers passed as arguments. Your solution must handle any number

 Complete the subroutine in the following script so that it returns

Complete the subroutine in the following script so that it returns a sum of all numbers passed as arguments. Your solution must handle any number of inputs. In the text field provided, you may enter the completed subroutine; you do not need to include the rest of the sample script. Script #1 /usr/bin/perl sub addALl [ my $TOTAL-O # Your code goes here! return $TOTAL; print addAll(1, 2, 3, 4, 5) "n" print addAll(5, 10, 0, 1) . "In" print addAll(1,1) . "In"; Sample output $ ./myScript.pl 15 16

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!